Use modern API.
[libidn.git] / reference / dummy.c
blob6251cf8dec6f78e2127422c226ac175f1be472d2
1 /**
2 * STRINGPREP_VERSION
4 * String defined via CPP denoting the header file version number.
5 * Used together with stringprep_check_version() to verify header file
6 * and run-time library consistency.
7 */
8 #define STRINGPREP_VERSION
10 /**
11 * IDNA_ACE_PREFIX
13 * The IANA allocated prefix to use for IDNA. "xn--"
15 #define IDNA_ACE_PREFIX
17 /**
18 * STRINGPREP_MAX_MAP_CHARS
20 * Maximum number of code points that can replace a single code point,
21 * during stringprep mapping.
23 #define STRINGPREP_MAX_MAP_CHARS
25 /**
26 * punycode_uint
28 * Unicode code point data type, this is always a 32 bit unsigned
29 * integer .
31 typedef uint32_t punycode_uint;
33 /**
34 * stringprep_nameprep:
35 * @in: input/ouput array with string to prepare.
36 * @maxlen: maximum length of input/output array.
38 * Prepare the input UTF-8 string according to the nameprep profile.
39 * The AllowUnassigned flag is true, use
40 * stringprep_nameprep_no_unassigned() for false AllowUnassigned.
41 * Returns 0 iff successful, or an error code.
42 **/
43 int
44 stringprep_nameprep (char *in, int maxlen)
48 /**
49 * stringprep_nameprep_no_unassigned:
50 * @in: input/ouput array with string to prepare.
51 * @maxlen: maximum length of input/output array.
53 * Prepare the input UTF-8 string according to the nameprep profile.
54 * The AllowUnassigned flag is false, use stringprep_nameprep() for
55 * true AllowUnassigned. Returns 0 iff successful, or an error code.
56 **/
57 int
58 stringprep_nameprep_no_unassigned (char *in, int maxlen)
62 /**
63 * stringprep_iscsi:
64 * @in: input/ouput array with string to prepare.
65 * @maxlen: maximum length of input/output array.
67 * Prepare the input UTF-8 string according to the draft iSCSI
68 * stringprep profile. Returns 0 iff successful, or an error code.
69 **/
70 int
71 stringprep_iscsi (char *in, int maxlen)
75 /**
76 * stringprep_kerberos5:
77 * @in: input/ouput array with string to prepare.
78 * @maxlen: maximum length of input/output array.
80 * Prepare the input UTF-8 string according to the draft Kerberos5
81 * stringprep profile. Returns 0 iff successful, or an error code.
82 **/
83 int
84 stringprep_kerberos5 (char *in, int maxlen)
88 /**
89 * stringprep_plain:
90 * @in: input/ouput array with string to prepare.
91 * @maxlen: maximum length of input/output array.
93 * Prepare the input UTF-8 string according to the draft SASL
94 * ANONYMOUS profile. Returns 0 iff successful, or an error code.
95 **/
96 int
97 stringprep_plain (char *in, int maxlen)
102 * stringprep_xmpp_nodeprep:
103 * @in: input/ouput array with string to prepare.
104 * @maxlen: maximum length of input/output array.
106 * Prepare the input UTF-8 string according to the draft XMPP node
107 * identifier profile. Returns 0 iff successful, or an error code.
110 stringprep_xmpp_nodeprep (char *in, int maxlen)
115 * stringprep_xmpp_resourceprep:
116 * @in: input/ouput array with string to prepare.
117 * @maxlen: maximum length of input/output array.
119 * Prepare the input UTF-8 string according to the draft XMPP resource
120 * identifier profile. Returns 0 iff successful, or an error code.
123 stringprep_xmpp_resourceprep (char *in, int maxlen)
128 * stringprep_generic:
129 * @in: input/ouput array with string to prepare.
130 * @maxlen: maximum length of input/output array.
132 * Prepare the input UTF-8 string according to a hypotetical "generic"
133 * stringprep profile. This is mostly used for debugging or when
134 * constructing new stringprep profiles. Returns 0 iff successful, or
135 * an error code.
138 stringprep_generic (char *in, int maxlen)