diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-30 23:19:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:05 -0500 |
commit | 74dd7d90622a518e54bbbdc4e37fa44cd4181e1e (patch) | |
tree | 5d697a9cf92ed6a5d13ca87e2ca4bd566ffc7f6f /source4/librpc/idl | |
parent | cf97155ab40ce39e913056f4ff1d74c65831d7d2 (diff) | |
download | samba-74dd7d90622a518e54bbbdc4e37fa44cd4181e1e.tar.gz samba-74dd7d90622a518e54bbbdc4e37fa44cd4181e1e.tar.bz2 samba-74dd7d90622a518e54bbbdc4e37fa44cd4181e1e.zip |
r3395: added support for "string32" type, to fix the fixed width string
problem that tim found.
(This used to be commit 2cf35cb4d2513a7be46065e12c6fd1e2b90f4b8a)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/idl_types.h | 6 | ||||
-rw-r--r-- | source4/librpc/idl/spoolss.idl | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/source4/librpc/idl/idl_types.h b/source4/librpc/idl/idl_types.h index d2d32245f3..d74523d8fb 100644 --- a/source4/librpc/idl/idl_types.h +++ b/source4/librpc/idl/idl_types.h @@ -5,6 +5,7 @@ #define STR_NOTERM LIBNDR_FLAG_STR_NOTERM #define STR_NULLTERM LIBNDR_FLAG_STR_NULLTERM #define STR_BYTESIZE LIBNDR_FLAG_STR_BYTESIZE +#define STR_FIXLEN32 LIBNDR_FLAG_STR_FIXLEN32 /* a UCS2 string prefixed with [size] [offset] [length], all 32 bits @@ -28,6 +29,11 @@ #define nstring [flag(STR_NULLTERM)] string /* + fixed length 32 character UCS-2 string +*/ +#define string32 [flag(STR_FIXLEN32)] string + +/* an ascii string prefixed with [size] [offset] [length], all 32 bits null terminated */ diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl index 85e32a98e6..88f3a09db7 100644 --- a/source4/librpc/idl/spoolss.idl +++ b/source4/librpc/idl/spoolss.idl @@ -55,7 +55,7 @@ } spoolss_PrinterInfo0; typedef struct { - uint16 devicename[32]; + string32 devicename; uint16 specversion; uint16 driverversion; uint16 size; @@ -74,7 +74,7 @@ uint16 yresolution; uint16 ttoption; uint16 collate; - uint16 formname[32]; + string32 formname; uint16 logpixels; uint32 bitsperpel; uint32 pelswidth; |