From: Stefan Metzmacher Date: Mon, 23 Jul 2018 07:02:52 +0000 (+0200) Subject: examples/VFS/skel_opaque: call smb_vfs_assert_all_fns() X-Git-Tag: ldb-1.5.0~205 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9db9aeeab9ce1e36b5af8784fd5e5c9c4014fe8;p=thirdparty%2Fsamba.git examples/VFS/skel_opaque: call smb_vfs_assert_all_fns() This template should always implement all calls. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index f88e9258c73..5b9d1f4451f 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -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); }