diff options
author | Tim Potter <tpot@samba.org> | 2005-08-05 22:57:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:31:23 -0500 |
commit | d87e1306c5cbfcbcd80d3f527aa4412aedfb9dcf (patch) | |
tree | d03704315fd01e52aa95055da82c8e8add698ac9 /source4/librpc/idl/eventlog.idl | |
parent | b2b89d654df22412c1a566780dc66e8bf3dc4d10 (diff) | |
download | samba-d87e1306c5cbfcbcd80d3f527aa4412aedfb9dcf.tar.gz samba-d87e1306c5cbfcbcd80d3f527aa4412aedfb9dcf.tar.bz2 samba-d87e1306c5cbfcbcd80d3f527aa4412aedfb9dcf.zip |
r9145: Some work on eventlog since jerry is doing some in Samba3. (-:
- Convert to use lsa_String instead of eventlog_String.
- Copy across some constants.
- Implement idl and testcase for ClearEventLog() function
(This used to be commit 352b21af3f0a84ee31d0eecaa76abf2134d044de)
Diffstat (limited to 'source4/librpc/idl/eventlog.idl')
-rw-r--r-- | source4/librpc/idl/eventlog.idl | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/source4/librpc/idl/eventlog.idl b/source4/librpc/idl/eventlog.idl index 2816d197c8..6393d38b15 100644 --- a/source4/librpc/idl/eventlog.idl +++ b/source4/librpc/idl/eventlog.idl @@ -5,23 +5,33 @@ */ [ uuid("82273fdc-e32a-18c3-3f78-827929dc23ea"), version(0.0), - depends(security), + depends(lsa,security), pointer_default(unique), pointer_default_top(unique), helpstring("Event Logger") ] interface eventlog { + typedef enum { + EVENTLOG_SEQUENTIAL_READ = 0x0001, + EVENTLOG_SEEK_READ = 0x0002, + EVENTLOG_FORWARDS_READ = 0x0004, + EVENTLOG_BACKWARDS_READ = 0x0008 + } eventlogReadFlags; + + typedef enum { + EVENTLOG_SUCCESS = 0x0000, + EVENTLOG_ERROR_TYPE = 0x0001, + EVENTLOG_WARNING_TYPE = 0x0002, + EVENTLOG_INFORMATION_TYPE = 0x0004, + EVENTLOG_AUDIT_SUCCESS = 0x0008, + EVENTLOG_AUDIT_FAILURE = 0x0010 + } eventlogEventTypes; + typedef struct { uint16 unknown0; uint16 unknown1; } eventlog_OpenUnknown0; - - typedef struct { - [value(2*strlen_m(name))] uint16 name_len; - [value(2*strlen_m(name))] uint16 name_size; - unistr_noterm *name; - } eventlog_String; - + typedef struct { uint32 size; uint32 reserved; @@ -35,7 +45,7 @@ uint16 reserved_flag; uint32 closingrecord; uint32 stringoffset; - [size_is(num_of_strings)] eventlog_String bla[*]; + [size_is(num_of_strings)] lsa_String bla[*]; uint32 sid_length; [size_is(sid_length)] dom_sid *sids; uint32 data_length; @@ -46,7 +56,10 @@ /******************/ /* Function: 0x00 */ - NTSTATUS eventlog_ClearEventLogW(); + NTSTATUS eventlog_ClearEventLogW( + [in,ref] policy_handle *handle, + [in] lsa_String *unknown + ); /******************/ /* Function: 0x01 */ @@ -82,8 +95,8 @@ /* Function: 0x07 */ NTSTATUS eventlog_OpenEventLogW( [in] eventlog_OpenUnknown0 *unknown0, - [in] eventlog_String source, - [in] eventlog_String unknown1, + [in] lsa_String logname, + [in] lsa_String servername, [in] uint32 unknown2, [in] uint32 unknown3, [out,ref] policy_handle *handle |