diff options
author | Günther Deschner <gd@samba.org> | 2009-01-13 13:14:36 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-01-14 10:18:51 +0100 |
commit | 76f137b908c233db36e7b64d77d7ceb3ce82dfd0 (patch) | |
tree | cbce25fad5704e47e3932b3e20f4c4fdf717e1df /librpc/idl | |
parent | a950242143f465ffede6d2c88fae043107a92c5a (diff) | |
download | samba-76f137b908c233db36e7b64d77d7ceb3ce82dfd0.tar.gz samba-76f137b908c233db36e7b64d77d7ceb3ce82dfd0.tar.bz2 samba-76f137b908c233db36e7b64d77d7ceb3ce82dfd0.zip |
eventlog: more eventlog record idl fixes.
- treat eventlogEventTypes as an enum.
- do not align the full eventlog entry.
- set range on number of strings according to docs.
- make a little more obvious what the reserved field stands for.
Guenther
Diffstat (limited to 'librpc/idl')
-rw-r--r-- | librpc/idl/eventlog.idl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/librpc/idl/eventlog.idl b/librpc/idl/eventlog.idl index 584d6717a0..51b3ea706e 100644 --- a/librpc/idl/eventlog.idl +++ b/librpc/idl/eventlog.idl @@ -18,7 +18,7 @@ import "lsa.idl", "security.idl"; EVENTLOG_BACKWARDS_READ = 0x0008 } eventlogReadFlags; - typedef bitmap { + typedef [public] enum { EVENTLOG_SUCCESS = 0x0000, EVENTLOG_ERROR_TYPE = 0x0001, EVENTLOG_WARNING_TYPE = 0x0002, @@ -32,15 +32,15 @@ import "lsa.idl", "security.idl"; uint16 unknown1; } eventlog_OpenUnknown0; - typedef [public] struct { + typedef [flag(NDR_NOALIGN),public] struct { uint32 size; - [value(0x654c664C)] uint32 reserved; /* "eLfL" */ + [charset(DOS),value("eLfL")] uint8 reserved[4]; uint32 record_number; time_t time_generated; time_t time_written; uint32 event_id; - uint16 event_type; - uint16 num_of_strings; + eventlogEventTypes event_type; + [range(0,256)] uint16 num_of_strings; uint16 event_category; uint16 reserved_flags; uint32 closing_record_number; |