s3-notify: add MS-CIFS 2.2.7.4.2 FILE_NOTIFY_INFORMATION to IDL.
authorGünther Deschner <gd@samba.org>
Tue, 6 Jul 2010 23:50:18 +0000 (01:50 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 7 Jul 2010 11:52:18 +0000 (13:52 +0200)
Guenther

source3/librpc/idl/notify.idl

index 0e806790744cc88f5e9b04d6f306a2a250df9c31..040f661b338a192915356d6f415f1cfee2ade546 100644 (file)
@@ -60,4 +60,23 @@ interface notify
                pointer private_data;
        } notify_event;
 
+       typedef [v1_enum] enum {
+               FILE_ACTION_ADDED               = 0x00000001,
+               FILE_ACTION_REMOVED             = 0x00000002,
+               FILE_ACTION_MODIFIED            = 0x00000003,
+               FILE_ACTION_RENAMED_OLD_NAME    = 0x00000004,
+               FILE_ACTION_RENAMED_NEW_NAME    = 0x00000005,
+               FILE_ACTION_ADDED_STREAM        = 0x00000006,
+               FILE_ACTION_REMOVED_STREAM      = 0x00000007,
+               FILE_ACTION_MODIFIED_STREAM     = 0x00000008
+       } FILE_NOTIFY_ACTION;
+
+       /* structure sent at the CIFS layer */
+       /* Align on 4-byte boundary according to MS-CIFS 2.2.7.4.2 */
+       typedef [public,gensize,flag(NDR_ALIGN4)] struct {
+               uint32 NextEntryOffset;
+               FILE_NOTIFY_ACTION Action;
+               [value(strlen_m(FileName1)*2)] uint32 FileNameLength;
+               [charset(UTF16),flag(STR_NOTERM)] uint16 FileName1[FileNameLength];
+       } FILE_NOTIFY_INFORMATION;
 }