]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Pass "conn" to notify_add()
authorVolker Lendecke <vl@samba.org>
Wed, 21 Mar 2012 10:47:50 +0000 (11:47 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 21 Mar 2012 11:52:09 +0000 (12:52 +0100)
source3/smbd/notify.c
source3/smbd/notify_internal.c
source3/smbd/proto.h

index 5a78a726b717b6b72db5536acbd1e986fd675378..80a79a65936ae89a4630592b264b8752a8078a8a 100644 (file)
@@ -221,7 +221,8 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
                e.subdir_filter = filter;
        }
 
-       status = notify_add(fsp->conn->notify_ctx, &e, notify_callback, fsp);
+       status = notify_add(fsp->conn->notify_ctx, fsp->conn, &e,
+                           notify_callback, fsp);
        TALLOC_FREE(fullpath);
 
        return status;
index b12459c9d3359dde7331dc026f628951e4ba1859..8c2e8016d17186bf0a12637f3e9b8a31c94a2f50 100644 (file)
@@ -505,7 +505,8 @@ static void notify_add_onelevel(struct notify_context *notify,
   add a notify watch. This is called when a notify is first setup on a open
   directory handle.
 */
-NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0,
+NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
+                   struct notify_entry *e0,
                    void (*callback)(void *, const struct notify_event *),
                    void *private_data)
 {
index 69655e7df6faa15aaf64d6ca8d35c50d75ff7b58..2530456dd0af2793d7eb39d4906c96281f962401 100644 (file)
@@ -548,7 +548,8 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
                                   struct event_context *ev,
                                   connection_struct *conn);
 bool notify_internal_parent_init(TALLOC_CTX *mem_ctx);
-NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0,
+NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
+                   struct notify_entry *e0,
                    void (*callback)(void *, const struct notify_event *),
                    void *private_data);
 NTSTATUS notify_remove(struct notify_context *notify, void *private_data);