1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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>
This commit is contained in:
Stefan Metzmacher 2018-07-23 09:02:52 +02:00
parent d1633532a9
commit f9db9aeeab

View 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);
}