diff options
author | Günther Deschner <gd@samba.org> | 2008-03-07 23:50:00 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-07 23:51:34 +0100 |
commit | 91710a5f853d639bbfb97bd7677c8dcc15a028e4 (patch) | |
tree | db9c75350fee69195a3cfb5eac7e55ff62dcc7b2 /source3 | |
parent | e931f28db76bd38de0ba3087e1faabc9f698db8b (diff) | |
download | samba-91710a5f853d639bbfb97bd7677c8dcc15a028e4.tar.gz samba-91710a5f853d639bbfb97bd7677c8dcc15a028e4.tar.bz2 samba-91710a5f853d639bbfb97bd7677c8dcc15a028e4.zip |
Remove unused marshalling for SRV_NET_NAME_VALIDATE.
Guenther
(This used to be commit 6ffd6c814fafe4112fe72a96a0893d5be06f4380)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/rpc_srvsvc.h | 14 | ||||
-rw-r--r-- | source3/rpc_parse/parse_srv.c | 58 |
2 files changed, 0 insertions, 72 deletions
diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h index dd67c48529..3ea55bd167 100644 --- a/source3/include/rpc_srvsvc.h +++ b/source3/include/rpc_srvsvc.h @@ -75,20 +75,6 @@ typedef struct net_srv_disk_enum { /***************************/ -typedef struct { - UNISTR2 *servername; - UNISTR2 sharename; - uint32 type; - uint32 flags; - WERROR status; -} SRV_Q_NET_NAME_VALIDATE; - -typedef struct { - WERROR status; -} SRV_R_NET_NAME_VALIDATE; - -/***************************/ - /* oops - this is going to take up a *massive* amount of stack. */ /* the UNISTR2s already have 1024 uint16 chars in them... */ diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c index 44777db8af..b4cc08748b 100644 --- a/source3/rpc_parse/parse_srv.c +++ b/source3/rpc_parse/parse_srv.c @@ -2695,64 +2695,6 @@ bool srv_io_r_net_disk_enum(const char *desc, SRV_R_NET_DISK_ENUM *r_n, prs_stru /******************************************************************* Reads or writes a structure. - ********************************************************************/ - -bool srv_io_q_net_name_validate(const char *desc, SRV_Q_NET_NAME_VALIDATE *q_n, prs_struct *ps, int depth) -{ - if (q_n == NULL) - return False; - - prs_debug(ps, depth, desc, "srv_io_q_net_name_validate"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!prs_pointer("servername", ps, depth, (void*)&q_n->servername, - sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2)) - return False; - - if(!prs_align(ps)) - return False; - - if(!smb_io_unistr2("", &q_n->sharename, True, ps, depth)) - return False; - - if(!prs_align(ps)) - return False; - - if(!prs_uint32("type", ps, depth, &q_n->type)) - return False; - - if(!prs_uint32("flags", ps, depth, &q_n->flags)) - return False; - - return True; -} - -/******************************************************************* - Reads or writes a structure. - ********************************************************************/ - -bool srv_io_r_net_name_validate(const char *desc, SRV_R_NET_NAME_VALIDATE *r_n, prs_struct *ps, int depth) -{ - if (r_n == NULL) - return False; - - prs_debug(ps, depth, desc, "srv_io_r_net_name_validate"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!prs_werror("status", ps, depth, &r_n->status)) - return False; - - return True; -} - -/******************************************************************* - Reads or writes a structure. ********************************************************************/ bool srv_io_q_net_file_query_secdesc(const char *desc, SRV_Q_NET_FILE_QUERY_SECDESC *q_n, prs_struct *ps, int depth) |