]> git.samba.org - samba.git/commitdiff
examples/VFS/skel_opaque: call smb_vfs_assert_all_fns()
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Jul 2018 07:02:52 +0000 (09:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2018 22:23:12 +0000 (00:23 +0200)
This template should always implement all calls.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
examples/VFS/skel_opaque.c

index f88e9258c733da8955fb60def4b615899b3edad6..5b9d1f4451f0ca8d52c3e0b49441a55d586db45b 100644 (file)
@@ -1058,6 +1058,13 @@ struct vfs_fn_pointers skel_opaque_fns = {
 static_decl_vfs;
 NTSTATUS vfs_skel_opaque_init(TALLOC_CTX *ctx)
 {
+       /*
+        * smb_vfs_assert_all_fns() makes sure every
+        * call is implemented.
+        *
+        * An opaque module requires this!
+        */
+       smb_vfs_assert_all_fns(&skel_opaque_fns, "skel_opaque");
        return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "skel_opaque",
                                &skel_opaque_fns);
 }