From de3aec702698a32257613864691923538368a86d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 7 Feb 2008 13:22:18 +0100 Subject: Remove unused marshalling for SAMR_QUERY_ALIAS_INFO. Guenther (This used to be commit 03dff0194b917099d0fab78f94075d29b553f3ad) --- source3/rpc_parse/parse_samr.c | 196 ----------------------------------------- 1 file changed, 196 deletions(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 23fe7d0fc0..436e284fd5 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -2184,42 +2184,6 @@ void init_samr_alias_info1(struct samr_AliasInfoAll *r, init_lsa_String(&r->description, description); } -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_alias_info1(const char *desc, ALIAS_INFO1 * al1, - prs_struct *ps, int depth) -{ - if (al1 == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_alias_info1"); - depth++; - - if(!prs_align(ps)) - return False; - - if ( !prs_unistr4_hdr("name", ps, depth, &al1->name) ) - return False; - if ( !prs_uint32("num_member", ps, depth, &al1->num_member) ) - return False; - if ( !prs_unistr4_hdr("description", ps, depth, &al1->description) ) - return False; - - if ( !prs_unistr4_str("name", ps, depth, &al1->name) ) - return False; - if ( !prs_align(ps) ) - return False; - if ( !prs_unistr4_str("description", ps, depth, &al1->description) ) - return False; - if ( !prs_align(ps) ) - return False; - - return True; -} - - /******************************************************************* inits a lsa_String structure. ********************************************************************/ @@ -2232,166 +2196,6 @@ void init_samr_alias_info3(struct lsa_String *r, init_lsa_String(r, description); } -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_alias_info3(const char *desc, ALIAS_INFO3 *al3, - prs_struct *ps, int depth) -{ - if (al3 == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_alias_info3"); - depth++; - - if(!prs_align(ps)) - return False; - - if (!prs_unistr4("description", ps, depth, &al3->description)) - return False; - - return True; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_alias_info2(const char *desc, ALIAS_INFO2 *al2, - prs_struct *ps, int depth) -{ - if (al2 == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_alias_info2"); - depth++; - - if(!prs_align(ps)) - return False; - - if (!prs_unistr4("name", ps, depth, &al2->name)) - return False; - - return True; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_alias_info_ctr(const char *desc, prs_struct *ps, int depth, ALIAS_INFO_CTR * ctr) -{ - if ( !ctr ) - return False; - - prs_debug(ps, depth, desc, "samr_alias_info_ctr"); - depth++; - - if ( !prs_uint16("level", ps, depth, &ctr->level) ) - return False; - - if(!prs_align(ps)) - return False; - switch (ctr->level) { - case 1: - if(!samr_io_alias_info1("alias_info1", &ctr->alias.info1, ps, depth)) - return False; - break; - case 2: - if(!samr_io_alias_info2("alias_info2", &ctr->alias.info2, ps, depth)) - return False; - break; - case 3: - if(!samr_io_alias_info3("alias_info3", &ctr->alias.info3, ps, depth)) - return False; - break; - default: - DEBUG(0,("samr_alias_info_ctr: unsupported switch level\n")); - break; - } - - return True; -} - -/******************************************************************* -inits a SAMR_Q_QUERY_ALIASINFO structure. -********************************************************************/ - -void init_samr_q_query_aliasinfo(SAMR_Q_QUERY_ALIASINFO * q_e, - POLICY_HND *pol, uint32 switch_level) -{ - DEBUG(5, ("init_samr_q_query_aliasinfo\n")); - - q_e->pol = *pol; - q_e->level = switch_level; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_q_query_aliasinfo(const char *desc, SAMR_Q_QUERY_ALIASINFO *in, - prs_struct *ps, int depth) -{ - if ( !in ) - return False; - - prs_debug(ps, depth, desc, "samr_io_q_query_aliasinfo"); - depth++; - - if(!prs_align(ps)) - return False; - - if ( !smb_io_pol_hnd("pol", &(in->pol), ps, depth) ) - return False; - - if ( !prs_uint16("level", ps, depth, &in->level) ) - return False; - - return True; -} - -/******************************************************************* -inits a SAMR_R_QUERY_ALIASINFO structure. -********************************************************************/ - -void init_samr_r_query_aliasinfo(SAMR_R_QUERY_ALIASINFO *out, - ALIAS_INFO_CTR * ctr, NTSTATUS status) -{ - DEBUG(5, ("init_samr_r_query_aliasinfo\n")); - - out->ctr = ctr; - out->status = status; -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_r_query_aliasinfo(const char *desc, SAMR_R_QUERY_ALIASINFO *out, - prs_struct *ps, int depth) -{ - if ( !out ) - return False; - - prs_debug(ps, depth, desc, "samr_io_r_query_aliasinfo"); - depth++; - - if(!prs_align(ps)) - return False; - - if ( !prs_pointer("alias", ps, depth, (void*)&out->ctr, sizeof(ALIAS_INFO_CTR), (PRS_POINTER_CAST)samr_alias_info_ctr)) - return False; - if(!prs_align(ps)) - return False; - - if(!prs_ntstatus("status", ps, depth, &out->status)) - return False; - - return True; -} - /******************************************************************* inits a SAMR_Q_LOOKUP_RIDS structure. ********************************************************************/ -- cgit