From: Volker Lendecke Date: Tue, 14 Jun 2016 04:54:11 +0000 (+0200) Subject: smbd: Make notify_callback() public X-Git-Tag: tdb-1.3.10~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2779cae82311c5a9352b757580abfe336e2a551b;p=thirdparty%2Fsamba.git smbd: Make notify_callback() public Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 2f07192a92e..c824ced5368 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -240,8 +240,8 @@ void change_notify_reply(struct smb_request *req, notify_buf->num_changes = 0; } -static void notify_callback(void *private_data, struct timespec when, - const struct notify_event *e) +void notify_callback(void *private_data, struct timespec when, + const struct notify_event *e) { files_struct *fsp = (files_struct *)private_data; DEBUG(10, ("notify_callback called for %s\n", fsp_str_dbg(fsp))); diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 9706fb0b709..f3b9e73b88f 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -530,6 +530,8 @@ void change_notify_reply(struct smb_request *req, void (*reply_fn)(struct smb_request *req, NTSTATUS error_code, uint8_t *buf, size_t len)); +void notify_callback(void *private_data, struct timespec when, + const struct notify_event *e); NTSTATUS change_notify_create(struct files_struct *fsp, uint32_t filter, bool recursive); NTSTATUS change_notify_add_request(struct smb_request *req,