diff options
author | Jeremy Allison <jra@samba.org> | 2017-04-20 12:24:43 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-04-22 01:17:00 +0200 |
commit | 306783d6f5d577a0b8bd31d659d8c802f22f0333 (patch) | |
tree | 20e1c5a45b027d061d3dc0cab9028bbccaef7ab7 /source4/ntvfs/posix | |
parent | 9342b3ebf7fe7b7565406bd9a606b6676c08b029 (diff) | |
download | samba-306783d6f5d577a0b8bd31d659d8c802f22f0333.tar.gz |
lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *)
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 <jra@samba.org>
Signed-off-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl.c | 6 | ||||
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl_nfs4.c | 4 | ||||
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl_xattr.c | 4 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index b2987645128..9a110caf236 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -85,7 +85,7 @@ const struct pvfs_acl_ops *pvfs_acl_backend_byname(const char *name) NTSTATUS pvfs_acl_init(void) { static bool initialized = false; -#define _MODULE_PROTO(init) extern NTSTATUS init(void); +#define _MODULE_PROTO(init) extern NTSTATUS init(TALLOC_CTX *); STATIC_pvfs_acl_MODULES_PROTO; init_module_fn static_init[] = { STATIC_pvfs_acl_MODULES }; init_module_fn *shared_init; @@ -95,8 +95,8 @@ NTSTATUS pvfs_acl_init(void) shared_init = load_samba_modules(NULL, "pvfs_acl"); - run_init_functions(static_init); - run_init_functions(shared_init); + run_init_functions(NULL, static_init); + run_init_functions(NULL, shared_init); talloc_free(shared_init); diff --git a/source4/ntvfs/posix/pvfs_acl_nfs4.c b/source4/ntvfs/posix/pvfs_acl_nfs4.c index bd00794763d..392dc92fe12 100644 --- a/source4/ntvfs/posix/pvfs_acl_nfs4.c +++ b/source4/ntvfs/posix/pvfs_acl_nfs4.c @@ -26,7 +26,7 @@ #include "librpc/gen_ndr/ndr_nfs4acl.h" #include "libcli/security/security.h" -NTSTATUS pvfs_acl_nfs4_init(void); +NTSTATUS pvfs_acl_nfs4_init(TALLOC_CTX *); #define ACE4_IDENTIFIER_GROUP 0x40 @@ -188,7 +188,7 @@ static NTSTATUS pvfs_acl_save_nfs4(struct pvfs_state *pvfs, struct pvfs_filename /* initialise pvfs acl NFS4 backend */ -NTSTATUS pvfs_acl_nfs4_init(void) +NTSTATUS pvfs_acl_nfs4_init(TALLOC_CTX *ctx) { struct pvfs_acl_ops ops = { .name = "nfs4acl", diff --git a/source4/ntvfs/posix/pvfs_acl_xattr.c b/source4/ntvfs/posix/pvfs_acl_xattr.c index d9cceef1bc3..648c459dadd 100644 --- a/source4/ntvfs/posix/pvfs_acl_xattr.c +++ b/source4/ntvfs/posix/pvfs_acl_xattr.c @@ -24,7 +24,7 @@ #include "../lib/util/unix_privs.h" #include "librpc/gen_ndr/ndr_xattr.h" -NTSTATUS pvfs_acl_xattr_init(void); +NTSTATUS pvfs_acl_xattr_init(TALLOC_CTX *); /* load the current ACL from extended attributes @@ -93,7 +93,7 @@ static NTSTATUS pvfs_acl_save_xattr(struct pvfs_state *pvfs, struct pvfs_filenam /* initialise pvfs acl xattr backend */ -NTSTATUS pvfs_acl_xattr_init(void) +NTSTATUS pvfs_acl_xattr_init(TALLOC_CTX *ctx) { struct pvfs_acl_ops ops = { .name = "xattr", diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index 7d1fea549fa..4133723c50a 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -359,7 +359,7 @@ static NTSTATUS pvfs_trans(struct ntvfs_module_context *ntvfs, /* initialialise the POSIX disk backend, registering ourselves with the ntvfs subsystem */ -NTSTATUS ntvfs_posix_init(void) +NTSTATUS ntvfs_posix_init(TALLOC_CTX *ctx) { NTSTATUS ret; struct ntvfs_ops ops; |