summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-21 21:25:03 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-21 21:25:03 +0000
commite1260ef0eb60a28001b358ae69c2e0e45be43961 (patch)
treefbfbaae512fbe0b576ebbcce6f957469e9076a50
parent55410a073fd2a4d9c4bb81da6042d199c1bf87bf (diff)
downloadsamba-e1260ef0eb60a28001b358ae69c2e0e45be43961.tar.gz
samba-e1260ef0eb60a28001b358ae69c2e0e45be43961.tar.bz2
samba-e1260ef0eb60a28001b358ae69c2e0e45be43961.zip
forgot to commit this, sorry
(This used to be commit ff883d1cba4e998aa0a4b160d4fee118f79ca277)
-rw-r--r--source4/librpc/idl/idl_types.h41
1 files changed, 41 insertions, 0 deletions
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