summaryrefslogtreecommitdiff
path: root/source3/include/module_dummy.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-10 10:53:48 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-10 10:53:48 +0000
commitc507ebe56741d773bf6e7ad547863a2da1aee687 (patch)
tree916ea67eda6b10be64ad1d78ecadc4da1c344678 /source3/include/module_dummy.h
parent05bc989ae88866951437dbcb88f76642aa8b6051 (diff)
downloadsamba-c507ebe56741d773bf6e7ad547863a2da1aee687.tar.gz
samba-c507ebe56741d773bf6e7ad547863a2da1aee687.tar.bz2
samba-c507ebe56741d773bf6e7ad547863a2da1aee687.zip
Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in. (This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
Diffstat (limited to 'source3/include/module_dummy.h')
-rw-r--r--source3/include/module_dummy.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/source3/include/module_dummy.h b/source3/include/module_dummy.h
new file mode 100644
index 0000000000..dfa0e1535b
--- /dev/null
+++ b/source3/include/module_dummy.h
@@ -0,0 +1,53 @@
+/*
+ Unix SMB/CIFS implementation.
+ For faking up smb_register_*() functions
+ e.g. smb_register_vfs() in nmbd
+ Copyright (C) Stefan (metze) Metzmacher 2003
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef _MODULE_DUMMY_H
+#define _MODULE_DUMMY_H
+
+#ifndef HAVE_SMB_REGISTER_AUTH
+NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+#endif /*HAVE_SMB_REGISTER_AUTH*/
+
+#ifndef HAVE_SMB_REGISTER_PASSDB
+NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+#endif /*HAVE_SMB_REGISTER_PASSDB*/
+
+#ifndef HAVE_RPC_PIPE_REGISTER_COMMANDS
+NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, const char *srv, const struct api_struct *cmds, int size)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+#endif /*HAVE_RPC_PIPE_REGISTER_COMMANDS*/
+
+#ifndef HAVE_SMB_REGISTER_VFS
+NTSTATUS smb_register_vfs(int version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+#endif /*HAVE_SMB_REGISTER_VFS*/
+
+#endif /* _MODULE_DUMMY_H */