summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_srvsvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-05 01:26:39 +0100
committerGünther Deschner <gd@samba.org>2008-03-05 10:00:31 +0100
commitc6c67005a820fd20afd0674d9b8f529450f0e1ae (patch)
tree56d70c645522b932305f648d582c8a95c8c5e104 /source3/rpc_server/srv_srvsvc.c
parentcc4cd73dc5f2db93ec9e1a87a31e0ce4fcca38ed (diff)
downloadsamba-c6c67005a820fd20afd0674d9b8f529450f0e1ae.tar.gz
samba-c6c67005a820fd20afd0674d9b8f529450f0e1ae.tar.bz2
samba-c6c67005a820fd20afd0674d9b8f529450f0e1ae.zip
Use pidl for _srvsvc_NetShareSetInfo().
Guenther (This used to be commit 9bfa77edc68a887972b609bfb0aee8bbbc89ce04)
Diffstat (limited to 'source3/rpc_server/srv_srvsvc.c')
-rw-r--r--source3/rpc_server/srv_srvsvc.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c
index a7e7be4a04..0d50bccef0 100644
--- a/source3/rpc_server/srv_srvsvc.c
+++ b/source3/rpc_server/srv_srvsvc.c
@@ -270,28 +270,7 @@ static bool api_srv_net_share_get_info(pipes_struct *p)
static bool api_srv_net_share_set_info(pipes_struct *p)
{
- SRV_Q_NET_SHARE_SET_INFO q_u;
- SRV_R_NET_SHARE_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);
-
- /* Unmarshall the net server set info. */
- if(!srv_io_q_net_share_set_info("", &q_u, data, 0)) {
- DEBUG(0,("api_srv_net_share_set_info: Failed to unmarshall SRV_Q_NET_SHARE_SET_INFO.\n"));
- return False;
- }
-
- r_u.status = _srv_net_share_set_info(p, &q_u, &r_u);
-
- if(!srv_io_r_net_share_set_info("", &r_u, rdata, 0)) {
- DEBUG(0,("api_srv_net_share_set_info: Failed to marshall SRV_R_NET_SHARE_SET_INFO.\n"));
- return False;
- }
-
- return True;
+ return proxy_srvsvc_call(p, NDR_SRVSVC_NETSHARESETINFO);
}
/*******************************************************************