diff options
author | Tim Potter <tpot@samba.org> | 2000-06-16 08:11:32 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-06-16 08:11:32 +0000 |
commit | a72f277f721903d504fc8501de55bf8c07801e05 (patch) | |
tree | fd6ab58d362c05389fdb8e34ada4e1eb1a8e6236 /source3/rpc_server/srv_wkssvc.c | |
parent | fac26f073b2ee6740285b5ddb39b6358885cbcb8 (diff) | |
download | samba-a72f277f721903d504fc8501de55bf8c07801e05.tar.gz samba-a72f277f721903d504fc8501de55bf8c07801e05.tar.bz2 samba-a72f277f721903d504fc8501de55bf8c07801e05.zip |
Simplified server pipe implementation by changing arguments passed down
through to the individual pipe api calls. Instead of passing two
prs_struct pointers, we now pass the pipes_struct pointer which contains
the former information as well as other useful stuff like the vuid.
(This used to be commit 96addba216bad2189120d78f5531d5caa6f37880)
Diffstat (limited to 'source3/rpc_server/srv_wkssvc.c')
-rw-r--r-- | source3/rpc_server/srv_wkssvc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_wkssvc.c b/source3/rpc_server/srv_wkssvc.c index a09250a80b..21e4f933f2 100644 --- a/source3/rpc_server/srv_wkssvc.c +++ b/source3/rpc_server/srv_wkssvc.c @@ -80,9 +80,11 @@ static BOOL wks_reply_query_info(WKS_Q_QUERY_INFO *q_u, /******************************************************************* api_wks_query_info ********************************************************************/ -static BOOL api_wks_query_info(prs_struct *data, prs_struct *rdata) +static BOOL api_wks_query_info(pipes_struct *p) { WKS_Q_QUERY_INFO q_u; + prs_struct *data = &p->in_data.data; + prs_struct *rdata = &p->out_data.rdata; /* grab the net share enum */ if(!wks_io_q_query_info("", &q_u, data, 0)) @@ -108,9 +110,9 @@ struct api_struct api_wks_cmds[] = /******************************************************************* receives a wkssvc pipe and responds. ********************************************************************/ -BOOL api_wkssvc_rpc(pipes_struct *p, prs_struct *data) +BOOL api_wkssvc_rpc(pipes_struct *p) { - return api_rpcTNP(p, "api_wkssvc_rpc", api_wks_cmds, data); + return api_rpcTNP(p, "api_wkssvc_rpc", api_wks_cmds); } #undef OLD_NTDOMAIN |