mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Rename module init functions from samba_init_module
Some modules use samba_init_module as the name for the init functions, others use a name based on the module name. Rename the init functions from samba_init_module, to be consistent across all modules. This change also allows to build idmap_tdb2 and perfcount_test statically. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 2 08:50:04 CEST 2014 on sn-devel-104
This commit is contained in:
parent
014342746f
commit
7f2d12c4c0
@ -381,7 +381,7 @@ static struct smb_perfcount_handlers perfcount_test_handlers = {
|
||||
perfcount_test_end
|
||||
};
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS perfcount_test_init(void)
|
||||
{
|
||||
return smb_register_perfcounter(SMB_PERFCOUNTER_INTERFACE_VERSION,
|
||||
"pc_test", &perfcount_test_handlers);
|
||||
|
@ -962,7 +962,7 @@ static struct nss_info_methods nss_sfu20_methods = {
|
||||
Initialize the plugins
|
||||
***********************************************************************/
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS idmap_ad_init(void)
|
||||
{
|
||||
static NTSTATUS status_idmap_ad = NT_STATUS_UNSUCCESSFUL;
|
||||
static NTSTATUS status_nss_rfc2307 = NT_STATUS_UNSUCCESSFUL;
|
||||
|
@ -688,7 +688,7 @@ static struct idmap_methods autorid_methods = {
|
||||
.allocate_id = idmap_autorid_allocate_id
|
||||
};
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS idmap_autorid_init(void)
|
||||
{
|
||||
return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION,
|
||||
"autorid", &autorid_methods);
|
||||
|
@ -366,7 +366,7 @@ static struct nss_info_methods hash_nss_methods = {
|
||||
state.
|
||||
**********************************************************************/
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS idmap_hash_init(void)
|
||||
{
|
||||
static NTSTATUS idmap_status = NT_STATUS_UNSUCCESSFUL;
|
||||
static NTSTATUS nss_status = NT_STATUS_UNSUCCESSFUL;
|
||||
|
@ -189,7 +189,7 @@ static struct idmap_methods rid_methods = {
|
||||
.sids_to_unixids = idmap_rid_sids_to_unixids,
|
||||
};
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS idmap_rid_init(void)
|
||||
{
|
||||
return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rid", &rid_methods);
|
||||
}
|
||||
|
@ -609,7 +609,7 @@ static struct idmap_methods db_methods = {
|
||||
.allocate_id = idmap_tdb_common_get_new_id
|
||||
};
|
||||
|
||||
NTSTATUS samba_init_module(void)
|
||||
NTSTATUS idmap_tdb2_init(void)
|
||||
{
|
||||
return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "tdb2", &db_methods);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user