From f9db9aeeab9ce1e36b5af8784fd5e5c9c4014fe8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 23 Jul 2018 09:02:52 +0200 Subject: [PATCH] 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 --- examples/VFS/skel_opaque.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.47.3