1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r12838: make the ntvfs function public

metze
(This used to be commit 41a564fdba)
This commit is contained in:
Stefan Metzmacher
2006-01-11 10:53:52 +00:00
committed by Gerald (Jerry) Carter
parent eab4a56197
commit 69f7c004fe
4 changed files with 124 additions and 124 deletions

View File

@ -45,7 +45,7 @@ static int num_backends;
The 'type' is used to specify whether this is for a disk, printer or IPC$ share The 'type' is used to specify whether this is for a disk, printer or IPC$ share
*/ */
NTSTATUS ntvfs_register(const void *_ops) _PUBLIC_ NTSTATUS ntvfs_register(const void *_ops)
{ {
const struct ntvfs_ops *ops = _ops; const struct ntvfs_ops *ops = _ops;
struct ntvfs_ops *new_ops; struct ntvfs_ops *new_ops;
@ -79,7 +79,7 @@ NTSTATUS ntvfs_register(const void *_ops)
/* /*
return the operations structure for a named backend of the specified type return the operations structure for a named backend of the specified type
*/ */
const struct ntvfs_ops *ntvfs_backend_byname(const char *name, enum ntvfs_type type) _PUBLIC_ const struct ntvfs_ops *ntvfs_backend_byname(const char *name, enum ntvfs_type type)
{ {
int i; int i;
@ -99,7 +99,7 @@ const struct ntvfs_ops *ntvfs_backend_byname(const char *name, enum ntvfs_type t
This can be used by backends to either detect compilation errors, or provide This can be used by backends to either detect compilation errors, or provide
multiple implementations for different smbd compilation options in one module multiple implementations for different smbd compilation options in one module
*/ */
const struct ntvfs_critical_sizes *ntvfs_interface_version(void) _PUBLIC_ const struct ntvfs_critical_sizes *ntvfs_interface_version(void)
{ {
static const struct ntvfs_critical_sizes critical_sizes = { static const struct ntvfs_critical_sizes critical_sizes = {
NTVFS_INTERFACE_VERSION, NTVFS_INTERFACE_VERSION,

View File

@ -346,8 +346,8 @@ static NTSTATUS map_openx_open(uint16_t flags, uint16_t open_mode,
/* /*
NTVFS open generic to any mapper NTVFS open generic to any mapper
*/ */
NTSTATUS ntvfs_map_open(struct smbsrv_request *req, union smb_open *io, _PUBLIC_ NTSTATUS ntvfs_map_open(struct smbsrv_request *req, union smb_open *io,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
NTSTATUS status; NTSTATUS status;
union smb_open *io2; union smb_open *io2;
@ -480,8 +480,8 @@ done:
/* /*
NTVFS fsinfo generic to any mapper NTVFS fsinfo generic to any mapper
*/ */
NTSTATUS ntvfs_map_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs, _PUBLIC_ NTSTATUS ntvfs_map_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
NTSTATUS status; NTSTATUS status;
union smb_fsinfo *fs2; union smb_fsinfo *fs2;
@ -609,8 +609,8 @@ NTSTATUS ntvfs_map_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs,
/* /*
NTVFS fileinfo generic to any mapper NTVFS fileinfo generic to any mapper
*/ */
NTSTATUS ntvfs_map_fileinfo(struct smbsrv_request *req, union smb_fileinfo *info, _PUBLIC_ NTSTATUS ntvfs_map_fileinfo(struct smbsrv_request *req, union smb_fileinfo *info,
union smb_fileinfo *info2) union smb_fileinfo *info2)
{ {
int i; int i;
/* and convert it to the required level using results in info2 */ /* and convert it to the required level using results in info2 */
@ -835,8 +835,8 @@ NTSTATUS ntvfs_map_fileinfo(struct smbsrv_request *req, union smb_fileinfo *info
/* /*
NTVFS fileinfo generic to any mapper NTVFS fileinfo generic to any mapper
*/ */
NTSTATUS ntvfs_map_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *info, _PUBLIC_ NTSTATUS ntvfs_map_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *info,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
NTSTATUS status; NTSTATUS status;
union smb_fileinfo *info2; union smb_fileinfo *info2;
@ -864,8 +864,8 @@ NTSTATUS ntvfs_map_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *inf
/* /*
NTVFS pathinfo generic to any mapper NTVFS pathinfo generic to any mapper
*/ */
NTSTATUS ntvfs_map_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *info, _PUBLIC_ NTSTATUS ntvfs_map_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *info,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
NTSTATUS status; NTSTATUS status;
union smb_fileinfo *info2; union smb_fileinfo *info2;
@ -897,8 +897,8 @@ NTSTATUS ntvfs_map_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *inf
/* /*
NTVFS lock generic to any mapper NTVFS lock generic to any mapper
*/ */
NTSTATUS ntvfs_map_lock(struct smbsrv_request *req, union smb_lock *lck, _PUBLIC_ NTSTATUS ntvfs_map_lock(struct smbsrv_request *req, union smb_lock *lck,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
union smb_lock *lck2; union smb_lock *lck2;
struct smb_lock_entry *locks; struct smb_lock_entry *locks;
@ -1020,8 +1020,8 @@ static NTSTATUS ntvfs_map_write_finish(struct smbsrv_request *req,
/* /*
NTVFS write generic to any mapper NTVFS write generic to any mapper
*/ */
NTSTATUS ntvfs_map_write(struct smbsrv_request *req, union smb_write *wr, _PUBLIC_ NTSTATUS ntvfs_map_write(struct smbsrv_request *req, union smb_write *wr,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
union smb_write *wr2; union smb_write *wr2;
NTSTATUS status; NTSTATUS status;
@ -1118,8 +1118,8 @@ static NTSTATUS ntvfs_map_read_finish(struct smbsrv_request *req,
/* /*
NTVFS read* to readx mapper NTVFS read* to readx mapper
*/ */
NTSTATUS ntvfs_map_read(struct smbsrv_request *req, union smb_read *rd, _PUBLIC_ NTSTATUS ntvfs_map_read(struct smbsrv_request *req, union smb_read *rd,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
union smb_read *rd2; union smb_read *rd2;
union smb_lock *lck; union smb_lock *lck;
@ -1202,8 +1202,8 @@ done:
/* /*
NTVFS close generic to any mapper NTVFS close generic to any mapper
*/ */
NTSTATUS ntvfs_map_close(struct smbsrv_request *req, union smb_close *cl, _PUBLIC_ NTSTATUS ntvfs_map_close(struct smbsrv_request *req, union smb_close *cl,
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
union smb_close *cl2; union smb_close *cl2;

View File

@ -24,7 +24,7 @@
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
/* connect/disconnect */ /* connect/disconnect */
NTSTATUS ntvfs_connect(struct smbsrv_request *req, const char *sharename) _PUBLIC_ NTSTATUS ntvfs_connect(struct smbsrv_request *req, const char *sharename)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->connect) { if (!ntvfs->ops->connect) {
@ -33,7 +33,7 @@ NTSTATUS ntvfs_connect(struct smbsrv_request *req, const char *sharename)
return ntvfs->ops->connect(ntvfs, req, sharename); return ntvfs->ops->connect(ntvfs, req, sharename);
} }
NTSTATUS ntvfs_disconnect(struct smbsrv_tcon *tcon) _PUBLIC_ NTSTATUS ntvfs_disconnect(struct smbsrv_tcon *tcon)
{ {
struct ntvfs_module_context *ntvfs; struct ntvfs_module_context *ntvfs;
if (tcon->ntvfs_ctx == NULL) { if (tcon->ntvfs_ctx == NULL) {
@ -47,7 +47,7 @@ NTSTATUS ntvfs_disconnect(struct smbsrv_tcon *tcon)
} }
/* path operations */ /* path operations */
NTSTATUS ntvfs_unlink(struct smbsrv_request *req, struct smb_unlink *unl) _PUBLIC_ NTSTATUS ntvfs_unlink(struct smbsrv_request *req, struct smb_unlink *unl)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->unlink) { if (!ntvfs->ops->unlink) {
@ -56,7 +56,7 @@ NTSTATUS ntvfs_unlink(struct smbsrv_request *req, struct smb_unlink *unl)
return ntvfs->ops->unlink(ntvfs, req, unl); return ntvfs->ops->unlink(ntvfs, req, unl);
} }
NTSTATUS ntvfs_chkpath(struct smbsrv_request *req, struct smb_chkpath *cp) _PUBLIC_ NTSTATUS ntvfs_chkpath(struct smbsrv_request *req, struct smb_chkpath *cp)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->chkpath) { if (!ntvfs->ops->chkpath) {
@ -65,7 +65,7 @@ NTSTATUS ntvfs_chkpath(struct smbsrv_request *req, struct smb_chkpath *cp)
return ntvfs->ops->chkpath(ntvfs, req, cp); return ntvfs->ops->chkpath(ntvfs, req, cp);
} }
NTSTATUS ntvfs_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *st) _PUBLIC_ NTSTATUS ntvfs_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *st)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->qpathinfo) { if (!ntvfs->ops->qpathinfo) {
@ -74,7 +74,7 @@ NTSTATUS ntvfs_qpathinfo(struct smbsrv_request *req, union smb_fileinfo *st)
return ntvfs->ops->qpathinfo(ntvfs, req, st); return ntvfs->ops->qpathinfo(ntvfs, req, st);
} }
NTSTATUS ntvfs_setpathinfo(struct smbsrv_request *req, union smb_setfileinfo *st) _PUBLIC_ NTSTATUS ntvfs_setpathinfo(struct smbsrv_request *req, union smb_setfileinfo *st)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->setpathinfo) { if (!ntvfs->ops->setpathinfo) {
@ -83,7 +83,7 @@ NTSTATUS ntvfs_setpathinfo(struct smbsrv_request *req, union smb_setfileinfo *st
return ntvfs->ops->setpathinfo(ntvfs, req, st); return ntvfs->ops->setpathinfo(ntvfs, req, st);
} }
NTSTATUS ntvfs_openfile(struct smbsrv_request *req, union smb_open *oi) _PUBLIC_ NTSTATUS ntvfs_openfile(struct smbsrv_request *req, union smb_open *oi)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->openfile) { if (!ntvfs->ops->openfile) {
@ -92,7 +92,7 @@ NTSTATUS ntvfs_openfile(struct smbsrv_request *req, union smb_open *oi)
return ntvfs->ops->openfile(ntvfs, req, oi); return ntvfs->ops->openfile(ntvfs, req, oi);
} }
NTSTATUS ntvfs_mkdir(struct smbsrv_request *req, union smb_mkdir *md) _PUBLIC_ NTSTATUS ntvfs_mkdir(struct smbsrv_request *req, union smb_mkdir *md)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->mkdir) { if (!ntvfs->ops->mkdir) {
@ -101,7 +101,7 @@ NTSTATUS ntvfs_mkdir(struct smbsrv_request *req, union smb_mkdir *md)
return ntvfs->ops->mkdir(ntvfs, req, md); return ntvfs->ops->mkdir(ntvfs, req, md);
} }
NTSTATUS ntvfs_rmdir(struct smbsrv_request *req, struct smb_rmdir *rd) _PUBLIC_ NTSTATUS ntvfs_rmdir(struct smbsrv_request *req, struct smb_rmdir *rd)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->rmdir) { if (!ntvfs->ops->rmdir) {
@ -110,7 +110,7 @@ NTSTATUS ntvfs_rmdir(struct smbsrv_request *req, struct smb_rmdir *rd)
return ntvfs->ops->rmdir(ntvfs, req, rd); return ntvfs->ops->rmdir(ntvfs, req, rd);
} }
NTSTATUS ntvfs_rename(struct smbsrv_request *req, union smb_rename *ren) _PUBLIC_ NTSTATUS ntvfs_rename(struct smbsrv_request *req, union smb_rename *ren)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->rename) { if (!ntvfs->ops->rename) {
@ -119,7 +119,7 @@ NTSTATUS ntvfs_rename(struct smbsrv_request *req, union smb_rename *ren)
return ntvfs->ops->rename(ntvfs, req, ren); return ntvfs->ops->rename(ntvfs, req, ren);
} }
NTSTATUS ntvfs_copy(struct smbsrv_request *req, struct smb_copy *cp) _PUBLIC_ NTSTATUS ntvfs_copy(struct smbsrv_request *req, struct smb_copy *cp)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->copy) { if (!ntvfs->ops->copy) {
@ -129,8 +129,8 @@ NTSTATUS ntvfs_copy(struct smbsrv_request *req, struct smb_copy *cp)
} }
/* directory search */ /* directory search */
NTSTATUS ntvfs_search_first(struct smbsrv_request *req, union smb_search_first *io, void *private, _PUBLIC_ NTSTATUS ntvfs_search_first(struct smbsrv_request *req, union smb_search_first *io, void *private,
BOOL ntvfs_callback(void *private, union smb_search_data *file)) BOOL ntvfs_callback(void *private, union smb_search_data *file))
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->search_first) { if (!ntvfs->ops->search_first) {
@ -139,8 +139,8 @@ NTSTATUS ntvfs_search_first(struct smbsrv_request *req, union smb_search_first *
return ntvfs->ops->search_first(ntvfs, req, io, private, ntvfs_callback); return ntvfs->ops->search_first(ntvfs, req, io, private, ntvfs_callback);
} }
NTSTATUS ntvfs_search_next(struct smbsrv_request *req, union smb_search_next *io, void *private, _PUBLIC_ NTSTATUS ntvfs_search_next(struct smbsrv_request *req, union smb_search_next *io, void *private,
BOOL ntvfs_callback(void *private, union smb_search_data *file)) BOOL ntvfs_callback(void *private, union smb_search_data *file))
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->search_next) { if (!ntvfs->ops->search_next) {
@ -149,7 +149,7 @@ NTSTATUS ntvfs_search_next(struct smbsrv_request *req, union smb_search_next *io
return ntvfs->ops->search_next(ntvfs, req, io, private, ntvfs_callback); return ntvfs->ops->search_next(ntvfs, req, io, private, ntvfs_callback);
} }
NTSTATUS ntvfs_search_close(struct smbsrv_request *req, union smb_search_close *io) _PUBLIC_ NTSTATUS ntvfs_search_close(struct smbsrv_request *req, union smb_search_close *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->search_close) { if (!ntvfs->ops->search_close) {
@ -159,7 +159,7 @@ NTSTATUS ntvfs_search_close(struct smbsrv_request *req, union smb_search_close *
} }
/* operations on open files */ /* operations on open files */
NTSTATUS ntvfs_ioctl(struct smbsrv_request *req, union smb_ioctl *io) _PUBLIC_ NTSTATUS ntvfs_ioctl(struct smbsrv_request *req, union smb_ioctl *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->ioctl) { if (!ntvfs->ops->ioctl) {
@ -168,7 +168,7 @@ NTSTATUS ntvfs_ioctl(struct smbsrv_request *req, union smb_ioctl *io)
return ntvfs->ops->ioctl(ntvfs, req, io); return ntvfs->ops->ioctl(ntvfs, req, io);
} }
NTSTATUS ntvfs_read(struct smbsrv_request *req, union smb_read *io) _PUBLIC_ NTSTATUS ntvfs_read(struct smbsrv_request *req, union smb_read *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->read) { if (!ntvfs->ops->read) {
@ -177,7 +177,7 @@ NTSTATUS ntvfs_read(struct smbsrv_request *req, union smb_read *io)
return ntvfs->ops->read(ntvfs, req, io); return ntvfs->ops->read(ntvfs, req, io);
} }
NTSTATUS ntvfs_write(struct smbsrv_request *req, union smb_write *io) _PUBLIC_ NTSTATUS ntvfs_write(struct smbsrv_request *req, union smb_write *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->write) { if (!ntvfs->ops->write) {
@ -186,7 +186,7 @@ NTSTATUS ntvfs_write(struct smbsrv_request *req, union smb_write *io)
return ntvfs->ops->write(ntvfs, req, io); return ntvfs->ops->write(ntvfs, req, io);
} }
NTSTATUS ntvfs_seek(struct smbsrv_request *req, struct smb_seek *io) _PUBLIC_ NTSTATUS ntvfs_seek(struct smbsrv_request *req, struct smb_seek *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->seek) { if (!ntvfs->ops->seek) {
@ -195,7 +195,7 @@ NTSTATUS ntvfs_seek(struct smbsrv_request *req, struct smb_seek *io)
return ntvfs->ops->seek(ntvfs, req, io); return ntvfs->ops->seek(ntvfs, req, io);
} }
NTSTATUS ntvfs_flush(struct smbsrv_request *req, struct smb_flush *flush) _PUBLIC_ NTSTATUS ntvfs_flush(struct smbsrv_request *req, struct smb_flush *flush)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->flush) { if (!ntvfs->ops->flush) {
@ -204,7 +204,7 @@ NTSTATUS ntvfs_flush(struct smbsrv_request *req, struct smb_flush *flush)
return ntvfs->ops->flush(ntvfs, req, flush); return ntvfs->ops->flush(ntvfs, req, flush);
} }
NTSTATUS ntvfs_close(struct smbsrv_request *req, union smb_close *io) _PUBLIC_ NTSTATUS ntvfs_close(struct smbsrv_request *req, union smb_close *io)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->close) { if (!ntvfs->ops->close) {
@ -213,7 +213,7 @@ NTSTATUS ntvfs_close(struct smbsrv_request *req, union smb_close *io)
return ntvfs->ops->close(ntvfs, req, io); return ntvfs->ops->close(ntvfs, req, io);
} }
NTSTATUS ntvfs_exit(struct smbsrv_request *req) _PUBLIC_ NTSTATUS ntvfs_exit(struct smbsrv_request *req)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->exit) { if (!ntvfs->ops->exit) {
@ -222,7 +222,7 @@ NTSTATUS ntvfs_exit(struct smbsrv_request *req)
return ntvfs->ops->exit(ntvfs, req); return ntvfs->ops->exit(ntvfs, req);
} }
NTSTATUS ntvfs_lock(struct smbsrv_request *req, union smb_lock *lck) _PUBLIC_ NTSTATUS ntvfs_lock(struct smbsrv_request *req, union smb_lock *lck)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->lock) { if (!ntvfs->ops->lock) {
@ -231,7 +231,7 @@ NTSTATUS ntvfs_lock(struct smbsrv_request *req, union smb_lock *lck)
return ntvfs->ops->lock(ntvfs, req, lck); return ntvfs->ops->lock(ntvfs, req, lck);
} }
NTSTATUS ntvfs_setfileinfo(struct smbsrv_request *req, union smb_setfileinfo *info) _PUBLIC_ NTSTATUS ntvfs_setfileinfo(struct smbsrv_request *req, union smb_setfileinfo *info)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->setfileinfo) { if (!ntvfs->ops->setfileinfo) {
@ -240,7 +240,7 @@ NTSTATUS ntvfs_setfileinfo(struct smbsrv_request *req, union smb_setfileinfo *in
return ntvfs->ops->setfileinfo(ntvfs, req, info); return ntvfs->ops->setfileinfo(ntvfs, req, info);
} }
NTSTATUS ntvfs_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *info) _PUBLIC_ NTSTATUS ntvfs_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *info)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->qfileinfo) { if (!ntvfs->ops->qfileinfo) {
@ -250,7 +250,7 @@ NTSTATUS ntvfs_qfileinfo(struct smbsrv_request *req, union smb_fileinfo *info)
} }
/* filesystem operations */ /* filesystem operations */
NTSTATUS ntvfs_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs) _PUBLIC_ NTSTATUS ntvfs_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->fsinfo) { if (!ntvfs->ops->fsinfo) {
@ -260,7 +260,7 @@ NTSTATUS ntvfs_fsinfo(struct smbsrv_request *req, union smb_fsinfo *fs)
} }
/* printing specific operations */ /* printing specific operations */
NTSTATUS ntvfs_lpq(struct smbsrv_request *req, union smb_lpq *lpq) _PUBLIC_ NTSTATUS ntvfs_lpq(struct smbsrv_request *req, union smb_lpq *lpq)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->lpq) { if (!ntvfs->ops->lpq) {
@ -270,7 +270,7 @@ NTSTATUS ntvfs_lpq(struct smbsrv_request *req, union smb_lpq *lpq)
} }
/* trans2 interface - only used by CIFS backend to prover complete passthru for testing */ /* trans2 interface - only used by CIFS backend to prover complete passthru for testing */
NTSTATUS ntvfs_trans2(struct smbsrv_request *req, struct smb_trans2 *trans2) _PUBLIC_ NTSTATUS ntvfs_trans2(struct smbsrv_request *req, struct smb_trans2 *trans2)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->trans2) { if (!ntvfs->ops->trans2) {
@ -280,7 +280,7 @@ NTSTATUS ntvfs_trans2(struct smbsrv_request *req, struct smb_trans2 *trans2)
} }
/* trans interface - used by IPC backend for pipes and RAP calls */ /* trans interface - used by IPC backend for pipes and RAP calls */
NTSTATUS ntvfs_trans(struct smbsrv_request *req, struct smb_trans2 *trans) _PUBLIC_ NTSTATUS ntvfs_trans(struct smbsrv_request *req, struct smb_trans2 *trans)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->trans) { if (!ntvfs->ops->trans) {
@ -290,7 +290,7 @@ NTSTATUS ntvfs_trans(struct smbsrv_request *req, struct smb_trans2 *trans)
} }
/* logoff - called when a vuid is closed */ /* logoff - called when a vuid is closed */
NTSTATUS ntvfs_logoff(struct smbsrv_request *req) _PUBLIC_ NTSTATUS ntvfs_logoff(struct smbsrv_request *req)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->logoff) { if (!ntvfs->ops->logoff) {
@ -301,7 +301,7 @@ NTSTATUS ntvfs_logoff(struct smbsrv_request *req)
/* async setup - called by a backend that wants to setup any state for /* async setup - called by a backend that wants to setup any state for
a async request */ a async request */
NTSTATUS ntvfs_async_setup(struct smbsrv_request *req, void *private) _PUBLIC_ NTSTATUS ntvfs_async_setup(struct smbsrv_request *req, void *private)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->async_setup) { if (!ntvfs->ops->async_setup) {
@ -314,7 +314,7 @@ NTSTATUS ntvfs_async_setup(struct smbsrv_request *req, void *private)
/* /*
cancel an outstanding async request cancel an outstanding async request
*/ */
NTSTATUS ntvfs_cancel(struct smbsrv_request *req) _PUBLIC_ NTSTATUS ntvfs_cancel(struct smbsrv_request *req)
{ {
struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules;
if (!ntvfs->ops->cancel) { if (!ntvfs->ops->cancel) {
@ -325,8 +325,8 @@ NTSTATUS ntvfs_cancel(struct smbsrv_request *req)
/* initial setup */ /* initial setup */
NTSTATUS ntvfs_next_connect(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_connect(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, const char *sharename) struct smbsrv_request *req, const char *sharename)
{ {
if (!ntvfs->next || !ntvfs->next->ops->connect) { if (!ntvfs->next || !ntvfs->next->ops->connect) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -334,8 +334,8 @@ NTSTATUS ntvfs_next_connect(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->connect(ntvfs->next, req, sharename); return ntvfs->next->ops->connect(ntvfs->next, req, sharename);
} }
NTSTATUS ntvfs_next_disconnect(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_disconnect(struct ntvfs_module_context *ntvfs,
struct smbsrv_tcon *tcon) struct smbsrv_tcon *tcon)
{ {
if (!ntvfs->next || !ntvfs->next->ops->disconnect) { if (!ntvfs->next || !ntvfs->next->ops->disconnect) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -344,8 +344,8 @@ NTSTATUS ntvfs_next_disconnect(struct ntvfs_module_context *ntvfs,
} }
/* path operations */ /* path operations */
NTSTATUS ntvfs_next_unlink(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_unlink(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_unlink *unl) struct smbsrv_request *req, struct smb_unlink *unl)
{ {
if (!ntvfs->next || !ntvfs->next->ops->unlink) { if (!ntvfs->next || !ntvfs->next->ops->unlink) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -353,8 +353,8 @@ NTSTATUS ntvfs_next_unlink(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->unlink(ntvfs->next, req, unl); return ntvfs->next->ops->unlink(ntvfs->next, req, unl);
} }
NTSTATUS ntvfs_next_chkpath(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_chkpath(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_chkpath *cp) struct smbsrv_request *req, struct smb_chkpath *cp)
{ {
if (!ntvfs->next || !ntvfs->next->ops->chkpath) { if (!ntvfs->next || !ntvfs->next->ops->chkpath) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -362,8 +362,8 @@ NTSTATUS ntvfs_next_chkpath(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->chkpath(ntvfs->next, req, cp); return ntvfs->next->ops->chkpath(ntvfs->next, req, cp);
} }
NTSTATUS ntvfs_next_qpathinfo(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_qpathinfo(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_fileinfo *st) struct smbsrv_request *req, union smb_fileinfo *st)
{ {
if (!ntvfs->next || !ntvfs->next->ops->qpathinfo) { if (!ntvfs->next || !ntvfs->next->ops->qpathinfo) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -371,8 +371,8 @@ NTSTATUS ntvfs_next_qpathinfo(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->qpathinfo(ntvfs->next, req, st); return ntvfs->next->ops->qpathinfo(ntvfs->next, req, st);
} }
NTSTATUS ntvfs_next_setpathinfo(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_setpathinfo(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_setfileinfo *st) struct smbsrv_request *req, union smb_setfileinfo *st)
{ {
if (!ntvfs->next || !ntvfs->next->ops->setpathinfo) { if (!ntvfs->next || !ntvfs->next->ops->setpathinfo) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -380,8 +380,8 @@ NTSTATUS ntvfs_next_setpathinfo(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->setpathinfo(ntvfs->next, req, st); return ntvfs->next->ops->setpathinfo(ntvfs->next, req, st);
} }
NTSTATUS ntvfs_next_openfile(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_openfile(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_open *oi) struct smbsrv_request *req, union smb_open *oi)
{ {
if (!ntvfs->next || !ntvfs->next->ops->openfile) { if (!ntvfs->next || !ntvfs->next->ops->openfile) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -389,8 +389,8 @@ NTSTATUS ntvfs_next_openfile(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->openfile(ntvfs->next, req, oi); return ntvfs->next->ops->openfile(ntvfs->next, req, oi);
} }
NTSTATUS ntvfs_next_mkdir(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_mkdir(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_mkdir *md) struct smbsrv_request *req, union smb_mkdir *md)
{ {
if (!ntvfs->next || !ntvfs->next->ops->mkdir) { if (!ntvfs->next || !ntvfs->next->ops->mkdir) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -398,8 +398,8 @@ NTSTATUS ntvfs_next_mkdir(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->mkdir(ntvfs->next, req, md); return ntvfs->next->ops->mkdir(ntvfs->next, req, md);
} }
NTSTATUS ntvfs_next_rmdir(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_rmdir(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_rmdir *rd) struct smbsrv_request *req, struct smb_rmdir *rd)
{ {
if (!ntvfs->next || !ntvfs->next->ops->rmdir) { if (!ntvfs->next || !ntvfs->next->ops->rmdir) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -407,8 +407,8 @@ NTSTATUS ntvfs_next_rmdir(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->rmdir(ntvfs->next, req, rd); return ntvfs->next->ops->rmdir(ntvfs->next, req, rd);
} }
NTSTATUS ntvfs_next_rename(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_rename(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_rename *ren) struct smbsrv_request *req, union smb_rename *ren)
{ {
if (!ntvfs->next || !ntvfs->next->ops->rename) { if (!ntvfs->next || !ntvfs->next->ops->rename) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -416,8 +416,8 @@ NTSTATUS ntvfs_next_rename(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->rename(ntvfs->next, req, ren); return ntvfs->next->ops->rename(ntvfs->next, req, ren);
} }
NTSTATUS ntvfs_next_copy(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_copy(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_copy *cp) struct smbsrv_request *req, struct smb_copy *cp)
{ {
if (!ntvfs->next || !ntvfs->next->ops->copy) { if (!ntvfs->next || !ntvfs->next->ops->copy) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -426,9 +426,9 @@ NTSTATUS ntvfs_next_copy(struct ntvfs_module_context *ntvfs,
} }
/* directory search */ /* directory search */
NTSTATUS ntvfs_next_search_first(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_search_first(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_search_first *io, void *private, struct smbsrv_request *req, union smb_search_first *io, void *private,
BOOL (*callback)(void *private, union smb_search_data *file)) BOOL (*callback)(void *private, union smb_search_data *file))
{ {
if (!ntvfs->next || !ntvfs->next->ops->search_first) { if (!ntvfs->next || !ntvfs->next->ops->search_first) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -436,9 +436,9 @@ NTSTATUS ntvfs_next_search_first(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->search_first(ntvfs->next, req, io, private, callback); return ntvfs->next->ops->search_first(ntvfs->next, req, io, private, callback);
} }
NTSTATUS ntvfs_next_search_next(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_search_next(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_search_next *io, void *private, struct smbsrv_request *req, union smb_search_next *io, void *private,
BOOL (*callback)(void *private, union smb_search_data *file)) BOOL (*callback)(void *private, union smb_search_data *file))
{ {
if (!ntvfs->next || !ntvfs->next->ops->search_next) { if (!ntvfs->next || !ntvfs->next->ops->search_next) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -446,8 +446,8 @@ NTSTATUS ntvfs_next_search_next(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->search_next(ntvfs->next, req, io, private, callback); return ntvfs->next->ops->search_next(ntvfs->next, req, io, private, callback);
} }
NTSTATUS ntvfs_next_search_close(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_search_close(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_search_close *io) struct smbsrv_request *req, union smb_search_close *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->search_close) { if (!ntvfs->next || !ntvfs->next->ops->search_close) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -456,8 +456,8 @@ NTSTATUS ntvfs_next_search_close(struct ntvfs_module_context *ntvfs,
} }
/* operations on open files */ /* operations on open files */
NTSTATUS ntvfs_next_ioctl(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_ioctl(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_ioctl *io) struct smbsrv_request *req, union smb_ioctl *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->ioctl) { if (!ntvfs->next || !ntvfs->next->ops->ioctl) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -465,8 +465,8 @@ NTSTATUS ntvfs_next_ioctl(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->ioctl(ntvfs->next, req, io); return ntvfs->next->ops->ioctl(ntvfs->next, req, io);
} }
NTSTATUS ntvfs_next_read(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_read(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_read *io) struct smbsrv_request *req, union smb_read *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->read) { if (!ntvfs->next || !ntvfs->next->ops->read) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -474,8 +474,8 @@ NTSTATUS ntvfs_next_read(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->read(ntvfs->next, req, io); return ntvfs->next->ops->read(ntvfs->next, req, io);
} }
NTSTATUS ntvfs_next_write(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_write(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_write *io) struct smbsrv_request *req, union smb_write *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->write) { if (!ntvfs->next || !ntvfs->next->ops->write) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -483,8 +483,8 @@ NTSTATUS ntvfs_next_write(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->write(ntvfs->next, req, io); return ntvfs->next->ops->write(ntvfs->next, req, io);
} }
NTSTATUS ntvfs_next_seek(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_seek(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_seek *io) struct smbsrv_request *req, struct smb_seek *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->seek) { if (!ntvfs->next || !ntvfs->next->ops->seek) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -492,8 +492,8 @@ NTSTATUS ntvfs_next_seek(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->seek(ntvfs->next, req, io); return ntvfs->next->ops->seek(ntvfs->next, req, io);
} }
NTSTATUS ntvfs_next_flush(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_flush(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_flush *flush) struct smbsrv_request *req, struct smb_flush *flush)
{ {
if (!ntvfs->next || !ntvfs->next->ops->flush) { if (!ntvfs->next || !ntvfs->next->ops->flush) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -501,8 +501,8 @@ NTSTATUS ntvfs_next_flush(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->flush(ntvfs->next, req, flush); return ntvfs->next->ops->flush(ntvfs->next, req, flush);
} }
NTSTATUS ntvfs_next_close(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_close(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_close *io) struct smbsrv_request *req, union smb_close *io)
{ {
if (!ntvfs->next || !ntvfs->next->ops->close) { if (!ntvfs->next || !ntvfs->next->ops->close) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -510,8 +510,8 @@ NTSTATUS ntvfs_next_close(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->close(ntvfs->next, req, io); return ntvfs->next->ops->close(ntvfs->next, req, io);
} }
NTSTATUS ntvfs_next_exit(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_exit(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req) struct smbsrv_request *req)
{ {
if (!ntvfs->next || !ntvfs->next->ops->exit) { if (!ntvfs->next || !ntvfs->next->ops->exit) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -519,8 +519,8 @@ NTSTATUS ntvfs_next_exit(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->exit(ntvfs->next, req); return ntvfs->next->ops->exit(ntvfs->next, req);
} }
NTSTATUS ntvfs_next_lock(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_lock(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_lock *lck) struct smbsrv_request *req, union smb_lock *lck)
{ {
if (!ntvfs->next || !ntvfs->next->ops->lock) { if (!ntvfs->next || !ntvfs->next->ops->lock) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -528,8 +528,8 @@ NTSTATUS ntvfs_next_lock(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->lock(ntvfs->next, req, lck); return ntvfs->next->ops->lock(ntvfs->next, req, lck);
} }
NTSTATUS ntvfs_next_setfileinfo(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_setfileinfo(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_setfileinfo *info) struct smbsrv_request *req, union smb_setfileinfo *info)
{ {
if (!ntvfs->next || !ntvfs->next->ops->setfileinfo) { if (!ntvfs->next || !ntvfs->next->ops->setfileinfo) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -537,8 +537,8 @@ NTSTATUS ntvfs_next_setfileinfo(struct ntvfs_module_context *ntvfs,
return ntvfs->next->ops->setfileinfo(ntvfs->next, req, info); return ntvfs->next->ops->setfileinfo(ntvfs->next, req, info);
} }
NTSTATUS ntvfs_next_qfileinfo(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_qfileinfo(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_fileinfo *info) struct smbsrv_request *req, union smb_fileinfo *info)
{ {
if (!ntvfs->next || !ntvfs->next->ops->qfileinfo) { if (!ntvfs->next || !ntvfs->next->ops->qfileinfo) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -547,8 +547,8 @@ NTSTATUS ntvfs_next_qfileinfo(struct ntvfs_module_context *ntvfs,
} }
/* filesystem operations */ /* filesystem operations */
NTSTATUS ntvfs_next_fsinfo(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_fsinfo(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_fsinfo *fs) struct smbsrv_request *req, union smb_fsinfo *fs)
{ {
if (!ntvfs->next || !ntvfs->next->ops->fsinfo) { if (!ntvfs->next || !ntvfs->next->ops->fsinfo) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -557,8 +557,8 @@ NTSTATUS ntvfs_next_fsinfo(struct ntvfs_module_context *ntvfs,
} }
/* printing specific operations */ /* printing specific operations */
NTSTATUS ntvfs_next_lpq(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_lpq(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_lpq *lpq) struct smbsrv_request *req, union smb_lpq *lpq)
{ {
if (!ntvfs->next || !ntvfs->next->ops->lpq) { if (!ntvfs->next || !ntvfs->next->ops->lpq) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -567,8 +567,8 @@ NTSTATUS ntvfs_next_lpq(struct ntvfs_module_context *ntvfs,
} }
/* trans2 interface - only used by CIFS backend to prover complete passthru for testing */ /* trans2 interface - only used by CIFS backend to prover complete passthru for testing */
NTSTATUS ntvfs_next_trans2(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_trans2(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_trans2 *trans2) struct smbsrv_request *req, struct smb_trans2 *trans2)
{ {
if (!ntvfs->next || !ntvfs->next->ops->trans2) { if (!ntvfs->next || !ntvfs->next->ops->trans2) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -577,8 +577,8 @@ NTSTATUS ntvfs_next_trans2(struct ntvfs_module_context *ntvfs,
} }
/* trans interface - used by IPC backend for pipes and RAP calls */ /* trans interface - used by IPC backend for pipes and RAP calls */
NTSTATUS ntvfs_next_trans(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_trans(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smb_trans2 *trans) struct smbsrv_request *req, struct smb_trans2 *trans)
{ {
if (!ntvfs->next || !ntvfs->next->ops->trans) { if (!ntvfs->next || !ntvfs->next->ops->trans) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -587,8 +587,8 @@ NTSTATUS ntvfs_next_trans(struct ntvfs_module_context *ntvfs,
} }
/* logoff - called when a vuid is closed */ /* logoff - called when a vuid is closed */
NTSTATUS ntvfs_next_logoff(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_logoff(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req) struct smbsrv_request *req)
{ {
if (!ntvfs->next || !ntvfs->next->ops->logoff) { if (!ntvfs->next || !ntvfs->next->ops->logoff) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -597,9 +597,9 @@ NTSTATUS ntvfs_next_logoff(struct ntvfs_module_context *ntvfs,
} }
/* async_setup - called when setting up for a async request */ /* async_setup - called when setting up for a async request */
NTSTATUS ntvfs_next_async_setup(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_async_setup(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, struct smbsrv_request *req,
void *private) void *private)
{ {
if (!ntvfs->next || !ntvfs->next->ops->async_setup) { if (!ntvfs->next || !ntvfs->next->ops->async_setup) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;
@ -608,8 +608,8 @@ NTSTATUS ntvfs_next_async_setup(struct ntvfs_module_context *ntvfs,
} }
/* cancel - called to cancel an outstanding async request */ /* cancel - called to cancel an outstanding async request */
NTSTATUS ntvfs_next_cancel(struct ntvfs_module_context *ntvfs, _PUBLIC_ NTSTATUS ntvfs_next_cancel(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req) struct smbsrv_request *req)
{ {
if (!ntvfs->next || !ntvfs->next->ops->cancel) { if (!ntvfs->next || !ntvfs->next->ops->cancel) {
return NT_STATUS_NOT_IMPLEMENTED; return NT_STATUS_NOT_IMPLEMENTED;

View File

@ -27,10 +27,10 @@
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
NTSTATUS ntvfs_async_state_push(struct smbsrv_request *req, _PUBLIC_ NTSTATUS ntvfs_async_state_push(struct smbsrv_request *req,
void *private_data, void *private_data,
void (*send_fn)(struct smbsrv_request *), void (*send_fn)(struct smbsrv_request *),
struct ntvfs_module_context *ntvfs) struct ntvfs_module_context *ntvfs)
{ {
struct ntvfs_async_state *async; struct ntvfs_async_state *async;
@ -51,7 +51,7 @@ NTSTATUS ntvfs_async_state_push(struct smbsrv_request *req,
return NT_STATUS_OK; return NT_STATUS_OK;
} }
void ntvfs_async_state_pop(struct smbsrv_request *req) _PUBLIC_ void ntvfs_async_state_pop(struct smbsrv_request *req)
{ {
struct ntvfs_async_state *async; struct ntvfs_async_state *async;