s3-smbd: Added a become_user_by_session() function.
[Samba.git] / librpc / idl / idl_types.h
blob023c04020ea9528c7590c77d670c30643bb8b8ea
1 #define STR_ASCII LIBNDR_FLAG_STR_ASCII
2 #define STR_LEN4 LIBNDR_FLAG_STR_LEN4
3 #define STR_SIZE4 LIBNDR_FLAG_STR_SIZE4
4 #define STR_SIZE2 LIBNDR_FLAG_STR_SIZE2
5 #define STR_NOTERM LIBNDR_FLAG_STR_NOTERM
6 #define STR_NULLTERM LIBNDR_FLAG_STR_NULLTERM
7 #define STR_BYTESIZE LIBNDR_FLAG_STR_BYTESIZE
8 #define STR_CONFORMANT LIBNDR_FLAG_STR_CONFORMANT
9 #define STR_CHARLEN LIBNDR_FLAG_STR_CHARLEN
10 #define STR_UTF8 LIBNDR_FLAG_STR_UTF8
13 a null terminated UCS2 string
15 #define nstring [flag(STR_NULLTERM|NDR_ALIGN2)] string
18 a null terminated ascii string
20 #define astring [flag(STR_ASCII|STR_NULLTERM)] string
23 a null terminated UTF8 string
25 #define utf8string [flag(STR_UTF8|STR_NULLTERM)] string
28 a null terminated UCS2 string
30 #define nstring_array [flag(STR_NULLTERM|NDR_ALIGN2)] string_array
32 #define NDR_NOALIGN LIBNDR_FLAG_NOALIGN
33 #define NDR_REMAINING LIBNDR_FLAG_REMAINING
34 #define NDR_ALIGN2 LIBNDR_FLAG_ALIGN2
35 #define NDR_ALIGN4 LIBNDR_FLAG_ALIGN4
36 #define NDR_ALIGN8 LIBNDR_FLAG_ALIGN8
38 /* this flag is used to force a section of IDL as little endian. It is
39 needed for the epmapper IDL, which is defined as always being LE */
40 #define NDR_LITTLE_ENDIAN LIBNDR_FLAG_LITTLE_ENDIAN
41 #define NDR_BIG_ENDIAN LIBNDR_FLAG_BIGENDIAN
44 this is used to control formatting of uint8 arrays
46 #define NDR_PAHEX LIBNDR_PRINT_ARRAY_HEX
48 #define NDR_RELATIVE_REVERSE LIBNDR_FLAG_RELATIVE_REVERSE
49 #define NDR_NO_RELATIVE_REVERSE LIBNDR_FLAG_NO_RELATIVE_REVERSE