diff options
author | Volker Lendecke <vl@samba.org> | 2014-04-04 15:11:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-23 22:33:08 +0200 |
commit | da1778f4458d6be61b1a1b74c18367e98d6065e0 (patch) | |
tree | 696f5d4cd7c5ba953f644e41798d54300b7262de /source3/smbd/notify_internal.c | |
parent | 892bec88a3c4842d1b8d43dd9984eada99eab810 (diff) | |
download | samba-da1778f4458d6be61b1a1b74c18367e98d6065e0.tar.gz samba-da1778f4458d6be61b1a1b74c18367e98d6065e0.tar.xz samba-da1778f4458d6be61b1a1b74c18367e98d6065e0.zip |
smbd: Pass timespec_current through the notify_callback
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/notify_internal.c')
-rw-r--r-- | source3/smbd/notify_internal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 4d885651bae..69f937774f7 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -44,7 +44,7 @@ struct notify_list { struct notify_list *next, *prev; const char *path; - void (*callback)(void *, const struct notify_event *); + void (*callback)(void *, struct timespec, const struct notify_event *); void *private_data; }; @@ -194,7 +194,8 @@ static int notify_context_destructor(struct notify_context *notify) NTSTATUS notify_add(struct notify_context *notify, const char *path, uint32_t filter, uint32_t subdir_filter, - void (*callback)(void *, const struct notify_event *), + void (*callback)(void *, struct timespec, + const struct notify_event *), void *private_data) { struct notify_db_entry e; @@ -820,7 +821,8 @@ static void notify_handler(struct messaging_context *msg_ctx, for (listel=notify->list;listel;listel=listel->next) { if (listel->private_data == n->private_data) { - listel->callback(listel->private_data, n); + listel->callback(listel->private_data, + timespec_current(), n); break; } } |