From 4319076ccaf3e6264207a88b88dea0fa63b31879 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 19 Mar 2012 21:57:50 +0100 Subject: s3: Pass "path" through vfs_notify_watch --- source3/include/vfs.h | 2 ++ source3/include/vfs_macros.h | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'source3/include') diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 62f9d10129..c038c56f46 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -285,6 +285,7 @@ struct vfs_fn_pointers { NTSTATUS (*notify_watch_fn)(struct vfs_handle_struct *handle, struct sys_notify_context *ctx, struct notify_entry *e, + const char *path, void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev), @@ -676,6 +677,7 @@ char *smb_vfs_call_realpath(struct vfs_handle_struct *handle, const char *path); NTSTATUS smb_vfs_call_notify_watch(struct vfs_handle_struct *handle, struct sys_notify_context *ctx, struct notify_entry *e, + const char *name, void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev), diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 3bfda9fecb..5e184e3009 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -313,10 +313,10 @@ #define SMB_VFS_NEXT_REALPATH(handle, path) \ smb_vfs_call_realpath((handle)->next, (path)) -#define SMB_VFS_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) \ - smb_vfs_call_notify_watch((conn)->vfs_handles, (ctx), (e), (callback), (private_data), (handle_p)) -#define SMB_VFS_NEXT_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) \ - smb_vfs_call_notify_watch((conn)->next, (ctx), (e), (callback), (private_data), (handle_p)) +#define SMB_VFS_NOTIFY_WATCH(conn, ctx, e, path, callback, private_data, handle_p) \ + smb_vfs_call_notify_watch((conn)->vfs_handles, (ctx), (e), (path), (callback), (private_data), (handle_p)) +#define SMB_VFS_NEXT_NOTIFY_WATCH(conn, ctx, e, path, callback, private_data, handle_p) \ + smb_vfs_call_notify_watch((conn)->next, (ctx), (e), (path), (callback), (private_data), (handle_p)) #define SMB_VFS_CHFLAGS(conn, path, flags) \ smb_vfs_call_chflags((conn)->vfs_handles, (path), (flags)) -- cgit