Patch from metze and me that adds dummy smb_register_*() functions so
[samba.git] / source3 / include / module_dummy.h
1 /* 
2    Unix SMB/CIFS implementation.
3    For faking up smb_register_*() functions
4    e.g. smb_register_vfs() in nmbd
5    Copyright (C) Stefan (metze) Metzmacher      2003
6    
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 #ifndef _MODULE_DUMMY_H
23 #define _MODULE_DUMMY_H
24
25 #ifndef HAVE_SMB_REGISTER_AUTH
26 NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init)
27 {
28         return NT_STATUS_NOT_IMPLEMENTED;
29 }
30 #endif /*HAVE_SMB_REGISTER_AUTH*/
31
32 #ifndef HAVE_SMB_REGISTER_PASSDB
33 NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init) 
34 {
35         return NT_STATUS_NOT_IMPLEMENTED;
36 }
37 #endif /*HAVE_SMB_REGISTER_PASSDB*/
38
39 #ifndef HAVE_RPC_PIPE_REGISTER_COMMANDS
40 NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, const char *srv, const struct api_struct *cmds, int size)
41 {
42         return NT_STATUS_NOT_IMPLEMENTED;
43 }
44 #endif /*HAVE_RPC_PIPE_REGISTER_COMMANDS*/
45
46 #ifndef HAVE_SMB_REGISTER_VFS
47 NTSTATUS smb_register_vfs(int version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
48 {
49         return NT_STATUS_NOT_IMPLEMENTED;
50 }
51 #endif /*HAVE_SMB_REGISTER_VFS*/
52
53 #endif /* _MODULE_DUMMY_H */