summaryrefslogtreecommitdiff
path: root/include/linux/ucs2_string.h
blob: bb679b48f408217a422d0cd427ede3e05e2e67bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _LINUX_UCS2_STRING_H_
#define _LINUX_UCS2_STRING_H_

#include <linux/types.h>	/* for size_t */
#include <linux/stddef.h>	/* for NULL */

typedef u16 ucs2_char_t;

unsigned long ucs2_strnlen(const ucs2_char_t *s, size_t maxlength);
unsigned long ucs2_strlen(const ucs2_char_t *s);
unsigned long ucs2_strsize(const ucs2_char_t *data, unsigned long maxlength);
int ucs2_strncmp(const ucs2_char_t *a, const ucs2_char_t *b, size_t len);

unsigned long ucs2_utf8size(const ucs2_char_t *src);
unsigned long ucs2_as_utf8(u8 *dest, const ucs2_char_t *src,
			   unsigned long maxlength);

#endif /* _LINUX_UCS2_STRING_H_ */
/commit/net/netfilter/nft_compat.c?h=master&id=c828414ac935bd3df96a8f7028d9d06a3db441e8'>netfilter: nft_compat: suppress comment matchFlorian Westphal 2021-09-21netfilter: log: work around missing softdep backend moduleFlorian Westphal 2021-08-01netfilter: nft_compat: use nfnetlink_unicast()Pablo Neira Ayuso 2021-06-07netfilter: nfnetlink: add struct nfgenmsg to struct nfnl_info and use itPablo Neira Ayuso 2021-05-29netfilter: nf_tables: remove xt_action_param from nft_pktinfoFlorian Westphal 2021-04-26netfilter: nfnetlink: consolidate callback typesPablo Neira Ayuso 2021-04-26netfilter: nfnetlink: pass struct nfnl_info to rcu callbacksPablo Neira Ayuso 2021-03-31netfilter: add helper function to set up the nfnetlink header and use itPablo Neira Ayuso 2020-08-10netfilter: nft_compat: remove flush counter optimizationFlorian Westphal 2020-07-31netfilter: nft_compat: make sure xtables destructors have runFlorian Westphal 2020-06-25netfilter: Add MODULE_DESCRIPTION entries to kernel modulesRob Gill