Remove unused marshalling for NTSVCS_GET_HW_PROFILE_INFO.
authorGünther Deschner <gd@samba.org>
Mon, 18 Feb 2008 00:34:13 +0000 (01:34 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 18 Feb 2008 00:38:37 +0000 (01:38 +0100)
Guenther
(This used to be commit 2ec2eefc703df882599b6eac9147350c4df33006)

source3/include/rpc_ntsvcs.h
source3/rpc_parse/parse_ntsvcs.c

index b678662c6c9465830e0822e5f47a77227d84ea92..71274cc380ebf70b3517e5631b7814d6376a3c69 100644 (file)
@@ -68,21 +68,4 @@ typedef struct {
        WERROR status;
 } NTSVCS_R_GET_DEVICE_REG_PROPERTY;
 
-
-/**************************/
-
-typedef struct {
-       uint32 index;
-       uint8 *buffer;
-       uint32 buffer_size;
-       uint32 unknown1;
-} NTSVCS_Q_GET_HW_PROFILE_INFO;
-
-typedef struct {
-       uint32 buffer_size;     /* the size (not included in the reply) 
-                                  if just matched from the request */
-       uint8 *buffer;
-       WERROR status;
-} NTSVCS_R_GET_HW_PROFILE_INFO;
-
 #endif /* _RPC_NTSVCS_H */
index 012b8fa0ef8dccd382e55105fd0c831083858962..2b15a45506cc352e890b3bc21b1befad623e7064 100644 (file)
@@ -145,76 +145,3 @@ bool ntsvcs_io_r_get_device_reg_property(const char *desc, NTSVCS_R_GET_DEVICE_R
 
        return True;
 }
-
-/*******************************************************************
-********************************************************************/
-
-bool ntsvcs_io_q_get_hw_profile_info(const char *desc, NTSVCS_Q_GET_HW_PROFILE_INFO *q_u, prs_struct *ps, int depth)
-{
-       if (q_u == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "ntsvcs_io_q_get_hw_profile_info");
-       depth++;
-       
-       if(!prs_align(ps))
-               return False;
-
-       if ( !prs_uint32("index", ps, depth, &q_u->index) )
-               return False;
-
-       q_u->buffer_size = 0x000000a8;
-
-       if ( UNMARSHALLING(ps) ) {
-               q_u->buffer = TALLOC_ARRAY(talloc_tos(), uint8, q_u->buffer_size );
-               if (!q_u->buffer) {
-                       return False;
-               }
-       }
-
-       if ( !prs_uint8s(True, "buffer", ps, depth, q_u->buffer, q_u->buffer_size) )
-               return False;
-
-       if ( !prs_uint32("buffer_size", ps, depth, &q_u->buffer_size) )
-               return False;
-
-       if ( !prs_uint32("unknown1", ps, depth, &q_u->unknown1) )
-               return False;
-       
-       return True;
-
-}
-
-/*******************************************************************
-********************************************************************/
-
-bool ntsvcs_io_r_get_hw_profile_info(const char *desc, NTSVCS_R_GET_HW_PROFILE_INFO *r_u, prs_struct *ps, int depth)
-{
-       if ( !r_u )
-               return False;
-
-       prs_debug(ps, depth, desc, "ntsvcs_io_r_get_device_reg_property");
-       depth++;
-
-       if ( !prs_align(ps) )
-               return False;
-
-       if ( UNMARSHALLING(ps) ) {
-               if (r_u->buffer_size) {
-                       r_u->buffer = TALLOC_ARRAY(talloc_tos(), uint8, r_u->buffer_size );
-                       if (!r_u->buffer) {
-                               return False;
-                       }
-               } else {
-                       r_u->buffer = NULL;
-               }
-       }
-
-       if ( !prs_uint8s(True, "buffer", ps, depth, r_u->buffer, r_u->buffer_size) )
-               return False;
-
-       if(!prs_werror("status", ps, depth, &r_u->status))
-               return False;
-
-       return True;
-}