]> git.samba.org - kai/samba-autobuild/.git/blobdiff - examples/VFS/skel_opaque.c
examples/VFS/skel_opaque: call smb_vfs_assert_all_fns()
[kai/samba-autobuild/.git] / 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);
 }