From 306783d6f5d577a0b8bd31d659d8c802f22f0333 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 20 Apr 2017 12:24:43 -0700 Subject: lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison Signed-off-by: Ralph Böhme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144 --- examples/VFS/shadow_copy_test.c | 2 +- examples/VFS/skel_opaque.c | 2 +- examples/VFS/skel_transparent.c | 2 +- examples/auth/auth_skel.c | 4 ++-- examples/pdb/test.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/VFS/shadow_copy_test.c b/examples/VFS/shadow_copy_test.c index 05d6e16042d..48bf9d580ff 100644 --- a/examples/VFS/shadow_copy_test.c +++ b/examples/VFS/shadow_copy_test.c @@ -84,7 +84,7 @@ static struct vfs_fn_pointers vfs_test_shadow_copy_fns = { }; static_decl_vfs; -NTSTATUS vfs_shadow_copy_test_init(void) +NTSTATUS vfs_shadow_copy_test_init(TALLOC_CTX *ctx) { return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "shadow_copy_test", diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 94795957fbd..ffd951c0e2d 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -994,7 +994,7 @@ struct vfs_fn_pointers skel_opaque_fns = { }; static_decl_vfs; -NTSTATUS vfs_skel_opaque_init(void) +NTSTATUS vfs_skel_opaque_init(TALLOC_CTX *ctx) { return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "skel_opaque", &skel_opaque_fns); diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index f60131257ae..afadbc1a5cd 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -1119,7 +1119,7 @@ struct vfs_fn_pointers skel_transparent_fns = { }; static_decl_vfs; -NTSTATUS vfs_skel_transparent_init(void) +NTSTATUS vfs_skel_transparent_init(TALLOC_CTX *ctx) { return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "skel_transparent", &skel_transparent_fns); diff --git a/examples/auth/auth_skel.c b/examples/auth/auth_skel.c index 3f3379f0e93..6abd5ad4f7a 100644 --- a/examples/auth/auth_skel.c +++ b/examples/auth/auth_skel.c @@ -67,8 +67,8 @@ static NTSTATUS auth_init_skel(struct auth_context *auth_context, const char *pa return NT_STATUS_OK; } -NTSTATUS auth_skel_init(void); -NTSTATUS auth_skel_init(void) +NTSTATUS auth_skel_init(TALLOC_CTX *ctx); +NTSTATUS auth_skel_init(TALLOC_CTX *ctx) { return smb_register_auth(AUTH_INTERFACE_VERSION, "skel", auth_init_skel); } diff --git a/examples/pdb/test.c b/examples/pdb/test.c index 6d68d87a929..a5e7dac4933 100644 --- a/examples/pdb/test.c +++ b/examples/pdb/test.c @@ -108,7 +108,7 @@ static NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *locati } static_decl_pdb; -NTSTATUS pdb_test_init(void) +NTSTATUS pdb_test_init(TALLOC_CTX *ctx) { return smb_register_passdb(PASSDB_INTERFACE_VERSION, "testsam", testsam_init); -- cgit v1.2.1