added netr_DatabaseSync(). It doesn't work as I haven't done schannel
[samba.git] / source / librpc / idl / idl_types.h
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
8 /*
9   a UCS2 string prefixed with [size] [offset] [length], all 32 bits
10   not null terminated
11 */
12 #define unistr_noterm [flag(STR_NOTERM|STR_SIZE4|STR_LEN4)] string
13
14 /*
15   a UCS2 string prefixed with [size] [offset] [length], all 32 bits
16 */
17 #define unistr        [flag(STR_SIZE4|STR_LEN4)]            string
18
19 /*
20   a UCS2 string prefixed with [size], 32 bits
21 */
22 #define lstring       [flag(STR_SIZE4)]                     string
23
24 /*
25   a null terminated UCS2 string
26 */
27 #define nstring       [flag(STR_NULLTERM)]                  string
28
29 /*
30   an ascii string prefixed with [size] [offset] [length], all 32 bits
31   null terminated
32 */
33 #define ascstr        [flag(STR_ASCII|STR_SIZE4|STR_LEN4)]  string
34
35 /*
36   an ascii string prefixed with [offset] [length], both 32 bits
37   null terminated
38 */
39 #define ascstr2       [flag(STR_ASCII|STR_LEN4)]            string
40
41 /*
42   an ascii string prefixed with [size], 16 bits
43   null terminated
44 */
45 #define ascstr3       [flag(STR_ASCII|STR_SIZE2)]            string
46
47
48 #define NDR_NOALIGN   LIBNDR_FLAG_NOALIGN
49 #define NDR_REMAINING LIBNDR_FLAG_REMAINING
50 #define NDR_ALIGN2    LIBNDR_FLAG_ALIGN2
51 #define NDR_ALIGN4    LIBNDR_FLAG_ALIGN4
52 #define NDR_ALIGN8    LIBNDR_FLAG_ALIGN8
53
54
55 /*
56   these are used by the epmapper and mgmt interfaces
57 */
58 #define error_status_t uint32
59 #define boolean32 uint32
60 #define unsigned32 uint32
61
62 /*
63   this is used to control formatting of uint8 arrays
64 */
65 #define NDR_PAHEX LIBNDR_PRINT_ARRAY_HEX
66
67
68 #define bool8 uint8