diff options
author | Günther Deschner <gd@samba.org> | 2008-03-08 00:22:44 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-08 00:22:44 +0100 |
commit | 45c91e7d754592f32108113d9fc395bd16e3b227 (patch) | |
tree | 567c084602fe89cbf827879357cafdb61d8541f0 /source3/rpc_server/srv_srvsvc.c | |
parent | 8204efef161ac31956142ac635c516ffeebfcee3 (diff) | |
download | samba-45c91e7d754592f32108113d9fc395bd16e3b227.tar.gz samba-45c91e7d754592f32108113d9fc395bd16e3b227.tar.bz2 samba-45c91e7d754592f32108113d9fc395bd16e3b227.zip |
Use pidl for _srvsvc_NetShareAdd.
Guenther
(This used to be commit fd3e7728181e7a208706e477905173bec44c982e)
Diffstat (limited to 'source3/rpc_server/srv_srvsvc.c')
-rw-r--r-- | source3/rpc_server/srv_srvsvc.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c index 8853295608..1873bcb578 100644 --- a/source3/rpc_server/srv_srvsvc.c +++ b/source3/rpc_server/srv_srvsvc.c @@ -216,28 +216,7 @@ static bool api_srv_net_share_set_info(pipes_struct *p) static bool api_srv_net_share_add(pipes_struct *p) { - SRV_Q_NET_SHARE_ADD q_u; - SRV_R_NET_SHARE_ADD 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 add info. */ - if(!srv_io_q_net_share_add("", &q_u, data, 0)) { - DEBUG(0,("api_srv_net_share_add: Failed to unmarshall SRV_Q_NET_SHARE_ADD.\n")); - return False; - } - - r_u.status = _srv_net_share_add(p, &q_u, &r_u); - - if(!srv_io_r_net_share_add("", &r_u, rdata, 0)) { - DEBUG(0,("api_srv_net_share_add: Failed to marshall SRV_R_NET_SHARE_ADD.\n")); - return False; - } - - return True; + return proxy_srvsvc_call(p, NDR_SRVSVC_NETSHAREADD); } /******************************************************************* |