diff options
author | Günther Deschner <gd@samba.org> | 2008-02-06 13:08:32 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-07 11:03:44 +0100 |
commit | bffbee263f0be03af2a076f32b2a17edd2443eca (patch) | |
tree | c6717e5f72d4c26ce6e3acdceb41d72f6c434a03 | |
parent | 1500538ae816eedd0d31f6597db71f6410bfad91 (diff) | |
download | samba-bffbee263f0be03af2a076f32b2a17edd2443eca.tar.gz samba-bffbee263f0be03af2a076f32b2a17edd2443eca.tar.bz2 samba-bffbee263f0be03af2a076f32b2a17edd2443eca.zip |
Remove unused marshalling for SAMR_SET_GROUPINFO.
Guenther
(This used to be commit 2bcc01fd134ceff1a45311dec73a5db9397033f9)
-rw-r--r-- | source3/include/rpc_samr.h | 16 | ||||
-rw-r--r-- | source3/rpc_client/cli_samr.c | 33 | ||||
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 71 |
3 files changed, 0 insertions, 120 deletions
diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index f1b3cae034..271ecbf5a9 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -882,22 +882,6 @@ typedef struct r_samr_query_groupinfo_info } SAMR_R_QUERY_GROUPINFO; -/* SAMR_Q_SET_GROUPINFO - SAM Group Info */ -typedef struct q_samr_set_group_info -{ - POLICY_HND pol; /* policy handle */ - GROUP_INFO_CTR *ctr; - -} SAMR_Q_SET_GROUPINFO; - -/* SAMR_R_SET_GROUPINFO - SAM Group Info */ -typedef struct r_samr_set_group_info -{ - NTSTATUS status; - -} SAMR_R_SET_GROUPINFO; - - /********************************************************/ typedef struct { diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 16ba3cddf9..d454f95617 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -64,39 +64,6 @@ NTSTATUS rpccli_samr_query_userinfo(struct rpc_pipe_client *cli, return result; } -/* Set group info */ - -NTSTATUS rpccli_samr_set_groupinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *group_pol, GROUP_INFO_CTR *ctr) -{ - prs_struct qbuf, rbuf; - SAMR_Q_SET_GROUPINFO q; - SAMR_R_SET_GROUPINFO r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - - DEBUG(10,("cli_samr_set_groupinfo\n")); - - ZERO_STRUCT(q); - ZERO_STRUCT(r); - - /* Marshall data and send request */ - - init_samr_q_set_groupinfo(&q, group_pol, ctr); - - CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_SET_GROUPINFO, - q, r, - qbuf, rbuf, - samr_io_q_set_groupinfo, - samr_io_r_set_groupinfo, - NT_STATUS_UNSUCCESSFUL); - - /* Return output parameters */ - - result = r.status; - - return result; -} - /* Query group info */ NTSTATUS rpccli_samr_query_groupinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 26b5b1c545..dad35ec0e1 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -1538,77 +1538,6 @@ static bool samr_group_info_ctr(const char *desc, GROUP_INFO_CTR **ctr, } /******************************************************************* -inits a SAMR_Q_SET_GROUPINFO structure. -********************************************************************/ - -void init_samr_q_set_groupinfo(SAMR_Q_SET_GROUPINFO * q_e, - POLICY_HND *pol, GROUP_INFO_CTR * ctr) -{ - DEBUG(5, ("init_samr_q_set_groupinfo\n")); - - q_e->pol = *pol; - q_e->ctr = ctr; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_q_set_groupinfo(const char *desc, SAMR_Q_SET_GROUPINFO * q_e, - prs_struct *ps, int depth) -{ - if (q_e == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_q_set_groupinfo"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!smb_io_pol_hnd("pol", &q_e->pol, ps, depth)) - return False; - - if(!samr_group_info_ctr("ctr", &q_e->ctr, ps, depth)) - return False; - - return True; -} - -/******************************************************************* -inits a SAMR_R_SET_GROUPINFO structure. -********************************************************************/ - -void init_samr_r_set_groupinfo(SAMR_R_SET_GROUPINFO * r_u, NTSTATUS status) -{ - DEBUG(5, ("init_samr_r_set_groupinfo\n")); - - r_u->status = status; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_r_set_groupinfo(const char *desc, SAMR_R_SET_GROUPINFO * r_u, - prs_struct *ps, int depth) -{ - if (r_u == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_r_set_groupinfo"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!prs_ntstatus("status", ps, depth, &r_u->status)) - return False; - - return True; -} - -/******************************************************************* inits a SAMR_Q_QUERY_GROUPINFO structure. ********************************************************************/ |