From e1260ef0eb60a28001b358ae69c2e0e45be43961 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Nov 2003 21:25:03 +0000 Subject: forgot to commit this, sorry (This used to be commit ff883d1cba4e998aa0a4b160d4fee118f79ca277) --- source4/librpc/idl/idl_types.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 source4/librpc/idl/idl_types.h (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/idl_types.h b/source4/librpc/idl/idl_types.h new file mode 100644 index 0000000000..ba4e8ab14d --- /dev/null +++ b/source4/librpc/idl/idl_types.h @@ -0,0 +1,41 @@ +#define STR_ASCII LIBNDR_FLAG_STR_ASCII +#define STR_LEN4 LIBNDR_FLAG_STR_LEN4 +#define STR_SIZE4 LIBNDR_FLAG_STR_SIZE4 +#define STR_NOTERM LIBNDR_FLAG_STR_NOTERM +#define STR_NULLTERM LIBNDR_FLAG_STR_NULLTERM + +/* + a UCS2 string prefixed with [size] [offset] [length], all 32 bits + not null terminated +*/ +#define unistr_noterm [flag(STR_NOTERM|STR_SIZE4|STR_LEN4)] string + +/* + a UCS2 string prefixed with [size] [offset] [length], all 32 bits +*/ +#define unistr [flag(STR_SIZE4|STR_LEN4)] string + +/* + a UCS2 string prefixed with [size], 32 bits +*/ +#define lstring [flag(STR_SIZE4)] string + +/* + a null terminated UCS2 string +*/ +#define nstring [flag(STR_NULLTERM)] string + +/* + an ascii string prefixed with [size] [offset] [length], all 32 bits + null terminated +*/ +#define ascstr [flag(STR_ASCII|STR_SIZE4|STR_LEN4)] string + +/* + an ascii string prefixed with [offset] [length], both 32 bits + null terminated +*/ +#define ascstr2 [flag(STR_ASCII|STR_LEN4)] string + + +#define NDR_NOALIGN LIBNDR_FLAG_NOALIGN -- cgit