summaryrefslogtreecommitdiff
path: root/examples/VFS/skel.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-28 00:49:49 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-28 00:49:49 +0000
commit1c34cd359a9977ede758079d1989a49f00f39a67 (patch)
tree4258bd60ef0a06f3bfac675d7415cdf645ce3269 /examples/VFS/skel.c
parented12657e772d78e65dc34236de3d866067b5f1f6 (diff)
downloadsamba-1c34cd359a9977ede758079d1989a49f00f39a67.tar.gz
samba-1c34cd359a9977ede758079d1989a49f00f39a67.tar.bz2
samba-1c34cd359a9977ede758079d1989a49f00f39a67.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 29ba1e163f85aeaa3cd48a13e4f0a039fa80e7b0)
Diffstat (limited to 'examples/VFS/skel.c')
-rw-r--r--examples/VFS/skel.c8
1 files changed, 3 insertions, 5 deletions
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);
}