summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-28 21:50:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:46 -0500
commit98c082489bec0a0ce4db1daf4390e785381f229a (patch)
treee0872d7bdb525991311bab54137208381a58c223 /source3/include/smb.h
parent143a364d6253125c27e229d533940a6822ce7575 (diff)
downloadsamba-98c082489bec0a0ce4db1daf4390e785381f229a.tar.gz
samba-98c082489bec0a0ce4db1daf4390e785381f229a.tar.bz2
samba-98c082489bec0a0ce4db1daf4390e785381f229a.zip
r20394: This is a *VERY* early start of my work on notify.
Checking in because Jeremy was bugging me. Potentially this becomes quite intrusive, I'm not sure if I should open a temporary branch for this. Jeremy, Jerry, do you think 3_0 is the right place for this? Volker (This used to be commit bcf5c751cbe203c00814642e26440cf88f300bce)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 0e06ce1d79..c4d4660028 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -428,6 +428,16 @@ struct vfs_fsp_data {
*/
};
+struct notify_change {
+ uint32_t action;
+ char *name;
+};
+
+struct notify_changes {
+ uint32_t num_changes;
+ struct notify_change *changes;
+};
+
typedef struct files_struct {
struct files_struct *next, *prev;
int fnum;
@@ -470,6 +480,8 @@ typedef struct files_struct {
struct vfs_fsp_data *vfs_extension;
FAKE_FILE_HANDLE *fake_file_handle;
+
+ struct notify_changes *notify;
} files_struct;
#include "ntquotas.h"
@@ -1343,6 +1355,20 @@ struct bitmap {
#define FILE_NOTIFY_CHANGE_SECURITY 0x100
#define FILE_NOTIFY_CHANGE_FILE_NAME 0x200
+#define FILE_NOTIFY_CHANGE_NAME \
+ (FILE_NOTIFY_CHANGE_FILE_NAME|FILE_NOTIFY_CHANGE_DIR_NAME)
+
+/* change notify action results */
+#define NOTIFY_ACTION_ADDED 1
+#define NOTIFY_ACTION_REMOVED 2
+#define NOTIFY_ACTION_MODIFIED 3
+#define NOTIFY_ACTION_OLD_NAME 4
+#define NOTIFY_ACTION_NEW_NAME 5
+#define NOTIFY_ACTION_ADDED_STREAM 6
+#define NOTIFY_ACTION_REMOVED_STREAM 7
+#define NOTIFY_ACTION_MODIFIED_STREAM 8
+
+
/* where to find the base of the SMB packet proper */
#define smb_base(buf) (((char *)(buf))+4)