diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-07-23 09:02:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-07-25 00:23:12 +0200 |
commit | f9db9aeeab9ce1e36b5af8784fd5e5c9c4014fe8 (patch) | |
tree | cba527bb4484d0357a26c68269f53fe17c7d21d8 /examples/VFS | |
parent | d1633532a929c04c54c64ce49061e2eed590c3c2 (diff) | |
download | samba-f9db9aeeab9ce1e36b5af8784fd5e5c9c4014fe8.tar.gz |
examples/VFS/skel_opaque: call smb_vfs_assert_all_fns()
This template should always implement all calls.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |