Skip to content

Commit

Permalink
libgpo: clean up CSE module api, remove unrequired references to ads_…
Browse files Browse the repository at this point in the history
…struct.

Guenther

Signed-off-by: Günther Deschner <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
gd authored and cryptomilk committed Dec 18, 2013
1 parent 103e672 commit 8fef712
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions libgpo/gpext/gpext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 2 additions & 4 deletions libgpo/gpext/gpext.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@ 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,
struct GROUP_POLICY_OBJECT *gpo,
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,
Expand Down
3 changes: 1 addition & 2 deletions source3/libgpo/gpext/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ static WERROR reg_apply_registry(TALLOC_CTX *mem_ctx,
/****************************************************************
****************************************************************/

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,
Expand Down
3 changes: 1 addition & 2 deletions source3/libgpo/gpext/scripts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions source3/libgpo/gpext/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8fef712

Please sign in to comment.