From 659f3e681ee089be529f36cc6ba13f0e8e8fc649 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Jun 2012 09:38:05 +0200 Subject: s3:smbd: make struct notify_change_buf private to notify.c metze --- source3/smbd/notify.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index a55be9b938..73e25b7c92 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -24,6 +24,26 @@ #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 */ -- cgit