]> git.decadent.org.uk Git - nfs-utils.git/blob - tests/nsm_client/nlm_sm_inter_clnt.c
Imported Upstream version 1.2.8
[nfs-utils.git] / tests / nsm_client / nlm_sm_inter_clnt.c
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #include <memory.h> /* for memset */
7 #include "nlm_sm_inter.h"
8 #include <string.h>
9
10 /* Default timeout can be changed using clnt_control() */
11 static struct timeval TIMEOUT = { 25, 0 };
12
13 void *
14 nlm_sm_notify_3(struct nlm_sm_notify *argp, CLIENT *clnt)
15 {
16         static char clnt_res;
17
18         memset((char *)&clnt_res, 0, sizeof(clnt_res));
19         if (clnt_call (clnt, NLM_SM_NOTIFY,
20                 (xdrproc_t) xdr_nlm_sm_notify, (caddr_t) argp,
21                 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
22                 TIMEOUT) != RPC_SUCCESS) {
23                 return (NULL);
24         }
25         return ((void *)&clnt_res);
26 }
27
28 void *
29 nlm_sm_notify_4(struct nlm_sm_notify *argp, CLIENT *clnt)
30 {
31         static char clnt_res;
32
33         memset((char *)&clnt_res, 0, sizeof(clnt_res));
34         if (clnt_call (clnt, NLM_SM_NOTIFY,
35                 (xdrproc_t) xdr_nlm_sm_notify, (caddr_t) argp,
36                 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
37                 TIMEOUT) != RPC_SUCCESS) {
38                 return (NULL);
39         }
40         return ((void *)&clnt_res);
41 }