summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-17 18:23:37 +0000
committerVolker Lendecke <vlendec@samba.org>2007-01-17 18:23:37 +0000
commite8cf89ac47e458add8d9febe8b601d544c367bb7 (patch)
treeb43df6dadcdbd5586ced04660fa565174423eca6 /source
parenteecee858f56041fcec3eea37fed7efc08cadd267 (diff)
downloadsamba-e8cf89ac47e458add8d9febe8b601d544c367bb7.tar.gz
samba-e8cf89ac47e458add8d9febe8b601d544c367bb7.tar.xz
samba-e8cf89ac47e458add8d9febe8b601d544c367bb7.zip
r20856: Make "struct notify_mid_map" private to notify.c
Diffstat (limited to 'source')
-rw-r--r--source/include/smb.h13
-rw-r--r--source/smbd/notify.c11
2 files changed, 13 insertions, 11 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index fc3acf6d6c0..cf754b5c1f9 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -442,6 +442,8 @@ struct notify_change {
char *name;
};
+struct notify_mid_map;
+
struct notify_change_request {
struct notify_change_request *prev, *next;
struct files_struct *fsp; /* backpointer for cancel by mid */
@@ -451,17 +453,6 @@ struct notify_change_request {
struct notify_mid_map *mid_map;
};
-/*
- * For NTCancel, we need to find the notify_change_request indexed by
- * mid. Separate list here.
- */
-
-struct notify_mid_map {
- struct notify_mid_map *prev, *next;
- struct notify_change_request *req;
- uint16 mid;
-};
-
struct notify_change_buf {
/*
* If no requests are pending, changes are queued here. Simple array,
diff --git a/source/smbd/notify.c b/source/smbd/notify.c
index 6bedb17261f..3b01c2c7867 100644
--- a/source/smbd/notify.c
+++ b/source/smbd/notify.c
@@ -40,6 +40,17 @@ struct change_notify {
void *change_data;
};
+/*
+ * For NTCancel, we need to find the notify_change_request indexed by
+ * mid. Separate list here.
+ */
+
+struct notify_mid_map {
+ struct notify_mid_map *prev, *next;
+ struct notify_change_request *req;
+ uint16 mid;
+};
+
static struct change_notify *change_notify_list;
static BOOL notify_marshall_changes(unsigned num_changes,