s3:smbd: make struct notify_change_buf private to notify.c
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 07:38:05 +0000 (09:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:37 +0000 (10:18 +0200)
metze

source3/include/smb.h
source3/smbd/notify.c

index fc44219ed7263c43cebe020b6327102d93445a9d..e5a8c0102c44294ccc17224ef28f61d008221f4a 100644 (file)
@@ -169,26 +169,6 @@ struct sys_notify_context {
        void *private_data;     /* For use by the system backend */
 };
 
-struct notify_change_buf {
-       /*
-        * If no requests are pending, changes are queued here. Simple array,
-        * we only append.
-        */
-
-       /*
-        * num_changes == -1 means that we have got a catch-all change, when
-        * asked we just return NT_STATUS_OK without specific changes.
-        */
-       int num_changes;
-       struct notify_change *changes;
-
-       /*
-        * If no changes are around requests are queued here. Using a linked
-        * list, because we have to append at the end and delete from the top.
-        */
-       struct notify_change_request *requests;
-};
-
 typedef struct files_struct {
        struct files_struct *next, *prev;
        int fnum;
index a55be9b9384c6097255a91904bd587edff609647..73e25b7c92538f7b559f49e79ea027a2d8e19e4d 100644 (file)
 #include "smbd/globals.h"
 #include "../librpc/gen_ndr/ndr_notify.h"
 
+struct notify_change_buf {
+       /*
+        * If no requests are pending, changes are queued here. Simple array,
+        * we only append.
+        */
+
+       /*
+        * num_changes == -1 means that we have got a catch-all change, when
+        * asked we just return NT_STATUS_OK without specific changes.
+        */
+       int num_changes;
+       struct notify_change *changes;
+
+       /*
+        * If no changes are around requests are queued here. Using a linked
+        * list, because we have to append at the end and delete from the top.
+        */
+       struct notify_change_request *requests;
+};
+
 struct notify_change_request {
        struct notify_change_request *prev, *next;
        struct files_struct *fsp;       /* backpointer for cancel by mid */