diff options
author | Volker Lendecke <vl@samba.org> | 2012-03-21 11:47:50 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-03-21 12:52:09 +0100 |
commit | 8044db0a4d625598bbd4cf676efc74525d0000c3 (patch) | |
tree | 22172fb30717a603e149dcbd53aa0070fd0d458b /source3 | |
parent | 4319076ccaf3e6264207a88b88dea0fa63b31879 (diff) | |
download | samba-8044db0a4d625598bbd4cf676efc74525d0000c3.tar.gz samba-8044db0a4d625598bbd4cf676efc74525d0000c3.tar.bz2 samba-8044db0a4d625598bbd4cf676efc74525d0000c3.zip |
s3: Pass "conn" to notify_add()
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/notify.c | 3 | ||||
-rw-r--r-- | source3/smbd/notify_internal.c | 3 | ||||
-rw-r--r-- | source3/smbd/proto.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 5a78a726b7..80a79a6593 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -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; diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index b12459c9d3..8c2e8016d1 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -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) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 69655e7df6..2530456dd0 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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); |