summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-28 00:52:02 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-28 00:52:02 +0000
commitff09ef629a8f5c24c85a45d54c0fe32c2b1dc055 (patch)
tree99f07bd34794a59967075416a20c1a4c788d5ab6
parent45ffe8c8165bbfb3c51949e156d6fdb04c6f281e (diff)
downloadsamba-ff09ef629a8f5c24c85a45d54c0fe32c2b1dc055.tar.gz
samba-ff09ef629a8f5c24c85a45d54c0fe32c2b1dc055.tar.bz2
samba-ff09ef629a8f5c24c85a45d54c0fe32c2b1dc055.zip
Update for the new modules system. Also, use Makefile rather then Makefile.in
because we don't generate Makefile from configure anymore (This used to be commit 0d322968cbf445df79153c0abc0d041edcf223ee)
-rw-r--r--examples/VFS/Makefile (renamed from examples/VFS/Makefile.in)7
-rw-r--r--examples/VFS/skel.c8
2 files changed, 6 insertions, 9 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile
index 30019caccd..ac5a93b49b 100644
--- a/examples/VFS/Makefile.in
+++ b/examples/VFS/Makefile
@@ -1,7 +1,6 @@
-CC = @CC@
-CFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@
+CFLAGS =
+CPPFLAGS =
+LDFLAGS =
LDSHFLAGS = -shared
srcdir = ../../source/
FLAGS = $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper -I. $(CPPFLAGS) -I$(srcdir)
diff --git a/examples/VFS/skel.c b/examples/VFS/skel.c
index b937682822..f19323480f 100644
--- a/examples/VFS/skel.c
+++ b/examples/VFS/skel.c
@@ -437,12 +437,11 @@ static vfs_op_tuple skel_ops[] = {
/* VFS initialisation - return initialized vfs_op_tuple array back to Samba */
-vfs_op_tuple *vfs_init(int *vfs_version, struct vfs_ops *def_vfs_ops,
+static vfs_op_tuple *skel_init(const struct vfs_ops *def_vfs_ops,
struct smb_vfs_handle_struct *vfs_handle)
{
DEBUG(3, ("Initialising default vfs hooks\n"));
- *vfs_version = SMB_VFS_INTERFACE_VERSION;
memcpy(&default_vfs_ops, def_vfs_ops, sizeof(struct vfs_ops));
/* Remember vfs_handle for further allocation and referencing of private
@@ -452,8 +451,7 @@ vfs_op_tuple *vfs_init(int *vfs_version, struct vfs_ops *def_vfs_ops,
return skel_ops;
}
-/* VFS finalization function */
-void vfs_done(connection_struct *conn)
+int init_module(void)
{
- DEBUG(3, ("Finalizing default vfs hooks\n"));
+ return smb_register_vfs("skel", skel_init, SMB_VFS_INTERFACE_VERSION);
}