smbd: Make notify_callback() public
authorVolker Lendecke <vl@samba.org>
Tue, 14 Jun 2016 04:54:11 +0000 (06:54 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 20 Jul 2016 03:21:07 +0000 (05:21 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/notify.c
source3/smbd/proto.h

index 2f07192a92e16f9802eb77399256f8fe8e828701..c824ced536823231385c2908fd089693cdda6f15 100644 (file)
@@ -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)));
index 9706fb0b709c6e3035c4a59bb9aae8befa42f4c4..f3b9e73b88f1fc9572641c17e7e39fc6dd2b3fc6 100644 (file)
@@ -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,