s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap;
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Aug 2015 16:16:20 +0000 (18:16 +0200)
committerRalph Böhme <slow@samba.org>
Thu, 20 Aug 2015 14:06:21 +0000 (16:06 +0200)
This allows the static build of the modules.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/idmap_ad.c
source3/winbindd/idmap_autorid.c
source3/winbindd/idmap_hash/idmap_hash.c
source3/winbindd/idmap_rfc2307.c
source3/winbindd/idmap_rid.c
source3/winbindd/idmap_script.c
source3/winbindd/idmap_tdb2.c

index 5f7ab633be851014f9c21755a81c2d7d98005972..bc9d785bb417e5f04030982c5da597920ab16d68 100644 (file)
@@ -962,6 +962,7 @@ static struct nss_info_methods nss_sfu20_methods = {
  Initialize the plugins
  ***********************************************************************/
 
+static_decl_idmap;
 NTSTATUS idmap_ad_init(void)
 {
        static NTSTATUS status_idmap_ad = NT_STATUS_UNSUCCESSFUL;
index eeac2b063bee50720ffd20a54c0da4aaa69f7058..76dccaa96cc01fa59df22a663f877be333da41c5 100644 (file)
@@ -824,6 +824,7 @@ static struct idmap_methods autorid_methods = {
        .allocate_id     = idmap_autorid_allocate_id
 };
 
+static_decl_idmap;
 NTSTATUS idmap_autorid_init(void)
 {
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION,
index 1dbd300fbb4acae4ba66f005d24aa8a74d2f3bea..51bbf5b8306e5a14e951f250189ce82d1248f8be 100644 (file)
@@ -366,6 +366,7 @@ static struct nss_info_methods hash_nss_methods = {
  state.
  **********************************************************************/
 
+static_decl_idmap;
 NTSTATUS idmap_hash_init(void)
 {
        static NTSTATUS idmap_status = NT_STATUS_UNSUCCESSFUL;
index e9d04c30139d8917042c490b60ef223eb6e0a548..6b3ab4a24971661e31e23e52dee14de9c8a6e16b 100644 (file)
@@ -861,6 +861,7 @@ static struct idmap_methods rfc2307_methods = {
        .sids_to_unixids = idmap_rfc2307_sids_to_unixids,
 };
 
+static_decl_idmap;
 NTSTATUS idmap_rfc2307_init(void)
 {
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rfc2307",
index 099f68c5ee31562c9f4756908e2aabde216df9d7..d6c649bd9e1b163a6663711333882fb90e2dbf55 100644 (file)
@@ -185,6 +185,7 @@ static struct idmap_methods rid_methods = {
        .sids_to_unixids = idmap_rid_sids_to_unixids,
 };
 
+static_decl_idmap;
 NTSTATUS idmap_rid_init(void)
 {
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rid", &rid_methods);
index 3a0d685507ba4cbcf01d29ada90007ea89dcaf6c..e758b4eb1694623339800a0d800d68bc3f5a6944 100644 (file)
@@ -388,6 +388,7 @@ static struct idmap_methods db_methods = {
        .sids_to_unixids = idmap_script_sids_to_unixids,
 };
 
+static_decl_idmap;
 NTSTATUS idmap_script_init(void)
 {
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "script", &db_methods);
index ddd4dbfcf98b3596cc2465f4988d0b0c75a06078..1b75936f9a315bfecbb38e4feca9c213b09ff565 100644 (file)
@@ -609,6 +609,7 @@ static struct idmap_methods db_methods = {
        .allocate_id     = idmap_tdb_common_get_new_id
 };
 
+static_decl_idmap;
 NTSTATUS idmap_tdb2_init(void)
 {
        return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "tdb2", &db_methods);