summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-04 23:40:25 +0100
committerGünther Deschner <gd@samba.org>2008-03-05 09:50:02 +0100
commiteb44792a22f6889edcaa0760ab4ca86e9313122f (patch)
treef36724dadbcb6122d24995001b7792bb6af7b24f
parent05ea7555c169220850f723f3cfa5cfacca5e556f (diff)
downloadsamba-eb44792a22f6889edcaa0760ab4ca86e9313122f.tar.gz
samba-eb44792a22f6889edcaa0760ab4ca86e9313122f.tar.bz2
samba-eb44792a22f6889edcaa0760ab4ca86e9313122f.zip
Use pidl for _srvsvc_NetSrvSetInfo().
Guenther (This used to be commit 75b0bbf790da44c45c679c374dbe09f288f3fb8c)
-rw-r--r--source3/rpc_server/srv_srvsvc.c20
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c19
2 files changed, 7 insertions, 32 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c
index 0e97ee3460..a7e7be4a04 100644
--- a/source3/rpc_server/srv_srvsvc.c
+++ b/source3/rpc_server/srv_srvsvc.c
@@ -61,25 +61,7 @@ static bool api_srv_net_srv_get_info(pipes_struct *p)
static bool api_srv_net_srv_set_info(pipes_struct *p)
{
- SRV_Q_NET_SRV_SET_INFO q_u;
- SRV_R_NET_SRV_SET_INFO r_u;
- prs_struct *data = &p->in_data.data;
- prs_struct *rdata = &p->out_data.rdata;
-
- ZERO_STRUCT(q_u);
- ZERO_STRUCT(r_u);
-
- /* grab the net server set info */
- if (!srv_io_q_net_srv_set_info("", &q_u, data, 0))
- return False;
-
- r_u.status = _srv_net_srv_set_info(p, &q_u, &r_u);
-
- /* store the response in the SMB stream */
- if (!srv_io_r_net_srv_set_info("", &r_u, rdata, 0))
- return False;
-
- return True;
+ return proxy_srvsvc_call(p, NDR_SRVSVC_NETSRVSETINFO);
}
/*******************************************************************
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index ddb7e120d9..a3c9248ad2 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1328,22 +1328,21 @@ WERROR _srvsvc_NetSrvGetInfo(pipes_struct *p,
}
/*******************************************************************
-net server set info
+ _srvsvc_NetSrvSetInfo
********************************************************************/
-WERROR _srv_net_srv_set_info(pipes_struct *p, SRV_Q_NET_SRV_SET_INFO *q_u, SRV_R_NET_SRV_SET_INFO *r_u)
+WERROR _srvsvc_NetSrvSetInfo(pipes_struct *p,
+ struct srvsvc_NetSrvSetInfo *r)
{
WERROR status = WERR_OK;
- DEBUG(5,("srv_net_srv_set_info: %d\n", __LINE__));
+ DEBUG(5,("_srvsvc_NetSrvSetInfo: %d\n", __LINE__));
/* Set up the net server set info structure. */
- init_srv_r_net_srv_set_info(r_u, 0x0, status);
+ DEBUG(5,("_srvsvc_NetSrvSetInfo: %d\n", __LINE__));
- DEBUG(5,("srv_net_srv_set_info: %d\n", __LINE__));
-
- return r_u->status;
+ return status;
}
/*******************************************************************
@@ -2574,12 +2573,6 @@ WERROR _srvsvc_NetShareCheck(pipes_struct *p, struct srvsvc_NetShareCheck *r)
return WERR_NOT_SUPPORTED;
}
-WERROR _srvsvc_NetSrvSetInfo(pipes_struct *p, struct srvsvc_NetSrvSetInfo *r)
-{
- p->rng_fault_state = True;
- return WERR_NOT_SUPPORTED;
-}
-
WERROR _srvsvc_NetDiskEnum(pipes_struct *p, struct srvsvc_NetDiskEnum *r)
{
p->rng_fault_state = True;