-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremotedb_clnt.c
85 lines (73 loc) · 1.97 KB
/
remotedb_clnt.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "remotedb.h"
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
remotedb_out *
remotedbproc_1(remotedb_in *argp, CLIENT *clnt)
{
static remotedb_out clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, REMOTEDBPROC,
(xdrproc_t) xdr_remotedb_in, (caddr_t) argp,
(xdrproc_t) xdr_remotedb_out, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
remotedb_out *
add_to_database_1(remotedb_in2 *argp, CLIENT *clnt)
{
static remotedb_out clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, ADD_TO_DATABASE,
(xdrproc_t) xdr_remotedb_in2, (caddr_t) argp,
(xdrproc_t) xdr_remotedb_out, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
remotedb_out *
remove_from_database_1(remotedb_in *argp, CLIENT *clnt)
{
static remotedb_out clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, REMOVE_FROM_DATABASE,
(xdrproc_t) xdr_remotedb_in, (caddr_t) argp,
(xdrproc_t) xdr_remotedb_out, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
remotedb_out *
lookup_name_1(remotedb_in *argp, CLIENT *clnt)
{
static remotedb_out clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, LOOKUP_NAME,
(xdrproc_t) xdr_remotedb_in, (caddr_t) argp,
(xdrproc_t) xdr_remotedb_out, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
remotedb_out *
list_1(remotedb_in *argp, CLIENT *clnt)
{
static remotedb_out clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, LIST,
(xdrproc_t) xdr_remotedb_in, (caddr_t) argp,
(xdrproc_t) xdr_remotedb_out, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}