diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-03-08 03:54:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:52:36 -0500 |
commit | 418befec187066f6f107f1cf986d29bf77ca498c (patch) | |
tree | 59e4207d132fd7be83a2ee58e0b0511db20260b9 /source4/ntvfs/ntvfs_interface.c | |
parent | 82da2d401e54d0b3124b727fab755d94dd5402d4 (diff) | |
download | samba-418befec187066f6f107f1cf986d29bf77ca498c.tar.gz samba-418befec187066f6f107f1cf986d29bf77ca498c.tar.bz2 samba-418befec187066f6f107f1cf986d29bf77ca498c.zip |
r14011: - added a ntvfs_notify op to allow backends to support change notify
- converted the nttrans server side code to be async (needed for change notify)
This is the start of some work on supporting change notify via a new
approach. More soon.
(This used to be commit 0ad70bfd83b4a03c0e67f11f63822b833be67aa1)
Diffstat (limited to 'source4/ntvfs/ntvfs_interface.c')
-rw-r--r-- | source4/ntvfs/ntvfs_interface.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs_interface.c b/source4/ntvfs/ntvfs_interface.c index 5a2415f5f9..be536d5eef 100644 --- a/source4/ntvfs/ntvfs_interface.c +++ b/source4/ntvfs/ntvfs_interface.c @@ -324,6 +324,19 @@ _PUBLIC_ NTSTATUS ntvfs_cancel(struct smbsrv_request *req) } +/* + change notify request +*/ +_PUBLIC_ NTSTATUS ntvfs_notify(struct smbsrv_request *req, struct smb_notify *info) +{ + struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; + if (!ntvfs->ops->notify) { + return NT_STATUS_NOT_IMPLEMENTED; + } + return ntvfs->ops->notify(ntvfs, req, info); +} + + /* initial setup */ _PUBLIC_ NTSTATUS ntvfs_next_connect(struct ntvfs_module_context *ntvfs, struct smbsrv_request *req, const char *sharename) |