libgpo: clean up CSE module api, remove unrequired references to ads_struct.
authorGünther Deschner <gd@samba.org>
Fri, 13 Dec 2013 14:52:31 +0000 (15:52 +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
source3/libgpo/gpext/registry.c
source3/libgpo/gpext/scripts.c
source3/libgpo/gpext/security.c

index df84475754ddb3195d480a099cdeb9f7f5117f7f..8da2c5ea9ea07b3295e11592a49c4a5f709318db 100644 (file)
@@ -733,8 +733,7 @@ NTSTATUS gpext_process_extension(ADS_STRUCT *ads,
        status = ext->methods->initialize(mem_ctx);
        NT_STATUS_NOT_OK_RETURN(status);
 
-       status = ext->methods->process_group_policy(ads,
-                                                   mem_ctx,
+       status = ext->methods->process_group_policy(mem_ctx,
                                                    flags,
                                                    root_key,
                                                    token,
index ce999a110e30c21b38a63406dc977cfdcfcbf3d2..4cd786e02e27d8d757240a3774be9a48bde5e0cf 100644 (file)
@@ -61,8 +61,7 @@ struct gp_extension_methods {
 
        NTSTATUS (*initialize)(TALLOC_CTX *mem_ctx);
 
-       NTSTATUS (*process_group_policy)(ADS_STRUCT *ads,
-                                        TALLOC_CTX *mem_ctx,
+       NTSTATUS (*process_group_policy)(TALLOC_CTX *mem_ctx,
                                         uint32_t flags,
                                         struct registry_key *root_key,
                                         const struct security_token *token,
@@ -70,8 +69,7 @@ struct gp_extension_methods {
                                         const char *extension_guid,
                                         const char *snapin_guid);
 
-       NTSTATUS (*process_group_policy2)(ADS_STRUCT *ads,
-                                        TALLOC_CTX *mem_ctx,
+       NTSTATUS (*process_group_policy2)(TALLOC_CTX *mem_ctx,
                                         uint32_t flags,
                                         const struct security_token *token,
                                         struct GROUP_POLICY_OBJECT *gpo_list,
index b0ec7b88d908069a36332beb600f94c132595aa5..3b4c52d9958bb1178aad38957882a970cc7f98cb 100644 (file)
@@ -269,8 +269,7 @@ done:
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS registry_process_group_policy(ADS_STRUCT *ads,
-                                             TALLOC_CTX *mem_ctx,
+static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
                                              uint32_t flags,
                                              struct registry_key *root_key,
                                              const struct security_token *token,
index 0b6748507a7c820a9ce81584b17816e526429f68..3850216b9327cc6ec467dde8f3a8e71a54992342 100644 (file)
@@ -335,8 +335,7 @@ static WERROR scripts_apply(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS scripts_process_group_policy(ADS_STRUCT *ads,
-                                            TALLOC_CTX *mem_ctx,
+static NTSTATUS scripts_process_group_policy(TALLOC_CTX *mem_ctx,
                                             uint32_t flags,
                                             struct registry_key *root_key,
                                             const struct security_token *token,
index 2322bce762c8e5d5e5fae66177d84b60563ea6ae..37d8e4f400fe19c18bf5d98da46ed364b823c5cf 100644 (file)
@@ -140,8 +140,7 @@ static NTSTATUS gpttmpl_process(struct gp_inifile_context *ini_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS security_process_group_policy(ADS_STRUCT *ads,
-                                             TALLOC_CTX *mem_ctx,
+static NTSTATUS security_process_group_policy(TALLOC_CTX *mem_ctx,
                                              uint32_t flags,
                                              struct registry_key *root_key,
                                              const struct security_token *token,