diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-15 13:41:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-15 13:41:05 +0000 |
commit | 32a7cf9188672b0c4766056eb762972f8488aa8e (patch) | |
tree | 04d27186b802525e7449c03a908827a67f67200a /source3/aparser/spool.struct | |
parent | e2e33eb3207e1a6f85ca36cafc564aa9427fd7af (diff) | |
download | samba-32a7cf9188672b0c4766056eb762972f8488aa8e.tar.gz samba-32a7cf9188672b0c4766056eb762972f8488aa8e.tar.bz2 samba-32a7cf9188672b0c4766056eb762972f8488aa8e.zip |
started update to handle arbitrary arrays
note: this code is currently broken.
(This used to be commit 15646ebd84ee4e63a251c87800677f3dd2ae6971)
Diffstat (limited to 'source3/aparser/spool.struct')
-rw-r--r-- | source3/aparser/spool.struct | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/source3/aparser/spool.struct b/source3/aparser/spool.struct index 3e959e8f44..52b0e3aed9 100644 --- a/source3/aparser/spool.struct +++ b/source3/aparser/spool.struct @@ -1,18 +1,16 @@ module spool -test SPOOL_NOTIFY_INFO +test PRINTER_DRIVER_INFO_LEVEL_6 struct BUFFER5 { - .align 4; uint32 buf_len; - {buf_len} uint16 buffer; + uint16 *buffer[buf_len]; }; struct UNISTR2 { - .align 4; uint32 max_len; uint32 undoc; uint32 str_len; - {str_len} uint16 buffer; + uint16 *buffer[str_len]; }; struct UINT64_S { @@ -26,7 +24,6 @@ struct NTTIME { }; struct PRINTER_DRIVER_INFO_LEVEL_3 { - .align 4; uint32 cversion; UNISTR2 *name; UNISTR2 *environment; @@ -41,7 +38,6 @@ struct PRINTER_DRIVER_INFO_LEVEL_3 { }; struct PRINTER_DRIVER_INFO_LEVEL_6 { - .align 4; uint32 dummy1; uint32 version; UNISTR2 *name; @@ -67,41 +63,9 @@ struct PRINTER_DRIVER_INFO_LEVEL_6 { struct PRINTER_DRIVER_INFO { - .align 4; uint32 level; - union level *info { + union *info[level] { case 3 PRINTER_DRIVER_INFO_LEVEL_3 info_3; case 6 PRINTER_DRIVER_INFO_LEVEL_6 info_6; } }; - - -struct NOTIFY_DATA_VALUE { - uint32 value0; - uint32 value1; -}; - -struct NOTIFY_DATA_STRING { - uint32 length; - {length} uint16 string; -}; - -struct SPOOL_NOTIFY_INFO_DATA { - uint16 type; - uint16 field; - uint32 reserved; - uint32 id; - union enc_type *notify_data { - case 1 NOTIFY_DATA_VALUE value; - case 0 NOTIFY_DATA_STRING string; - } - uint32 size; - uint32 enc_type; -}; - -struct SPOOL_NOTIFY_INFO { - uint32 version; - uint32 flags; - uint32 count; - SPOOL_NOTIFY_INFO_DATA *data; -}; |