libgpo: clean up CSE api, remove unrequired references to ads_struct.
authorGünther Deschner <gd@samba.org>
Fri, 13 Dec 2013 14:54:10 +0000 (15:54 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 18 Dec 2013 13:48:24 +0000 (14:48 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libgpo/gpext/gpext.c
libgpo/gpext/gpext.h
libgpo/gpo_util.c

index 8da2c5ea9ea07b3295e11592a49c4a5f709318db..a48d3f59c705ad09994cb5baf219f6906abc1bcc 100644 (file)
@@ -678,7 +678,7 @@ void debug_gpext_header(int lvl,
        TALLOC_FREE(flags_str);
 }
 
-NTSTATUS process_gpo_list_with_extension(ADS_STRUCT *ads,
+NTSTATUS process_gpo_list_with_extension(
                           TALLOC_CTX *mem_ctx,
                           uint32_t flags,
                           const struct security_token *token,
@@ -692,8 +692,7 @@ NTSTATUS process_gpo_list_with_extension(ADS_STRUCT *ads,
 /****************************************************************
 ****************************************************************/
 
-NTSTATUS gpext_process_extension(ADS_STRUCT *ads,
-                                TALLOC_CTX *mem_ctx,
+NTSTATUS gpext_process_extension(TALLOC_CTX *mem_ctx,
                                 uint32_t flags,
                                 const struct security_token *token,
                                 struct registry_key *root_key,
index 4cd786e02e27d8d757240a3774be9a48bde5e0cf..a550f4e02d577ea29df07d0c5b3c6a421dc3c4b4 100644 (file)
@@ -104,15 +104,14 @@ void debug_gpext_header(int lvl,
                        struct GROUP_POLICY_OBJECT *gpo,
                        const char *extension_guid,
                        const char *snapin_guid);
-NTSTATUS process_gpo_list_with_extension(ADS_STRUCT *ads,
+NTSTATUS process_gpo_list_with_extension(
                           TALLOC_CTX *mem_ctx,
                           uint32_t flags,
                           const struct security_token *token,
                           struct GROUP_POLICY_OBJECT *gpo_list,
                           const char *extension_guid,
                           const char *snapin_guid);
-NTSTATUS gpext_process_extension(ADS_STRUCT *ads,
-                                TALLOC_CTX *mem_ctx,
+NTSTATUS gpext_process_extension(TALLOC_CTX *mem_ctx,
                                 uint32_t flags,
                                 const struct security_token *token,
                                 struct registry_key *root_key,
index b38a40ceb620d87eaa3cd11ac2eafd985dca9dfc..5810e35d6fc5777b69859215cc325d0b2fd413ac 100644 (file)
@@ -485,7 +485,7 @@ ADS_STATUS gpo_process_a_gpo(ADS_STRUCT *ads,
                        continue;
                }
 
-               ntstatus = gpext_process_extension(ads, mem_ctx,
+               ntstatus = gpext_process_extension(mem_ctx,
                                                   flags, token, root_key, gpo,
                                                   gp_ext->extensions_guid[i],
                                                   gp_ext->snapins_guid[i]);