Remove unused marshalling for SRV_NET_SESS_DEL.
authorGünther Deschner <gd@samba.org>
Mon, 10 Mar 2008 15:50:27 +0000 (16:50 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 10 Mar 2008 15:50:27 +0000 (16:50 +0100)
Guenther

source/include/rpc_srvsvc.h
source/rpc_parse/parse_srv.c

index a8e145a1558feef7566beb61dedc81d4d58b26a4..bc246f2ecf54ae2a5f34d751330bac4cca48e4f1 100644 (file)
@@ -137,27 +137,6 @@ typedef struct {
 
 /***************************/
 
-/* SRV_Q_NET_SESS_DEL */
-typedef struct q_net_sess_del
-{
-       uint32 ptr_srv_name;         /* pointer (to server name?) */
-       UNISTR2 uni_srv_name;        /* server name */
-
-       uint32 ptr_cli_name;         /* pointer (to qualifier name) */
-       UNISTR2 uni_cli_name;        /* qualifier name "\\qualifier" */
-
-       uint32 ptr_user_name;         /* pointer (to user name */
-       UNISTR2 uni_user_name;        /* user name */
-
-} SRV_Q_NET_SESS_DEL;
-
-/* SRV_R_NET_SESS_DEL */
-typedef struct r_net_sess_del
-{
-       WERROR status;               /* return status */
-
-} SRV_R_NET_SESS_DEL;
-
 /* CONN_INFO_0 (pointers to level 0 connection info strings) */
 typedef struct ptr_conn_info0
 {
index 30b35393955c33bed4dddbfc921bd5d303879d40..ec214d31f660be35c2eb6d368b2fee62360d59c9 100644 (file)
@@ -334,79 +334,6 @@ bool srv_io_r_net_sess_enum(const char *desc, SRV_R_NET_SESS_ENUM *r_n, prs_stru
        return True;
 }
 
-/*******************************************************************
- Inits a SRV_Q_NET_SESS_DEL structure.
-********************************************************************/
-
-void init_srv_q_net_sess_del(SRV_Q_NET_SESS_DEL *q_n, const char *srv_name,
-                             const char *cli_name, const char *user_name)
-{
-       DEBUG(5,("init_q_net_sess_enum\n"));
-
-       init_buf_unistr2(&q_n->uni_srv_name, &q_n->ptr_srv_name, srv_name);
-       init_buf_unistr2(&q_n->uni_cli_name, &q_n->ptr_cli_name, cli_name);
-       init_buf_unistr2(&q_n->uni_user_name, &q_n->ptr_user_name, user_name);
-}
-
-/*******************************************************************
- Reads or writes a structure.
-********************************************************************/
-
-bool srv_io_q_net_sess_del(const char *desc, SRV_Q_NET_SESS_DEL *q_n, prs_struct *ps, int depth)
-{
-       if (q_n == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "srv_io_q_net_sess_del");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint32("ptr_srv_name", ps, depth, &q_n->ptr_srv_name))
-               return False;
-       if(!smb_io_unistr2("", &q_n->uni_srv_name, True, ps, depth))
-               return False;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint32("ptr_cli_name", ps, depth, &q_n->ptr_cli_name))
-               return False;
-       if(!smb_io_unistr2("", &q_n->uni_cli_name, q_n->ptr_cli_name, ps, depth))
-               return False;
-
-       if(!prs_align(ps))
-               return False;
-       if(!prs_uint32("ptr_user_name", ps, depth, &q_n->ptr_user_name))
-               return False;
-       if(!smb_io_unistr2("", &q_n->uni_user_name, q_n->ptr_user_name, ps, depth))
-               return False;
-
-       return True;
-}
-
-/*******************************************************************
- Reads or writes a structure.
-********************************************************************/
-
-bool srv_io_r_net_sess_del(const char *desc, SRV_R_NET_SESS_DEL *r_n, prs_struct *ps, int depth)
-{
-       if (r_n == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "srv_io_r_net_sess_del");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_werror("status", ps, depth, &r_n->status))
-               return False;
-
-       return True;
-}
-
 /*******************************************************************
  Inits a CONN_INFO_0 structure
 ********************************************************************/