1 /* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
2 /*
3 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
4 * Use is subject to license terms.
5 */
6
7 /*
8 * Please do not edit this file.
9 * It was generated using rpcgen.
10 */
11
12 #include <memory.h> /* for memset */
13 #include "iprop.h"
14
15 /* Default timeout can be changed using clnt_control() */
16 static struct timeval TIMEOUT = { 25, 0 };
17
18 void *
iprop_null_1(void * argp,CLIENT * clnt)19 iprop_null_1(void *argp, CLIENT *clnt)
20 {
21 static char clnt_res;
22
23 memset(&clnt_res, 0, sizeof(clnt_res));
24 if (clnt_call (clnt, IPROP_NULL,
25 (xdrproc_t) xdr_void, (caddr_t) argp,
26 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
27 TIMEOUT) != RPC_SUCCESS) {
28 return (NULL);
29 }
30 return ((void *)&clnt_res);
31 }
32
33 kdb_incr_result_t *
iprop_get_updates_1(kdb_last_t * argp,CLIENT * clnt)34 iprop_get_updates_1(kdb_last_t *argp, CLIENT *clnt)
35 {
36 static kdb_incr_result_t clnt_res;
37
38 memset(&clnt_res, 0, sizeof(clnt_res));
39 if (clnt_call (clnt, IPROP_GET_UPDATES,
40 (xdrproc_t) xdr_kdb_last_t, (caddr_t) argp,
41 (xdrproc_t) xdr_kdb_incr_result_t, (caddr_t) &clnt_res,
42 TIMEOUT) != RPC_SUCCESS) {
43 return (NULL);
44 }
45 return (&clnt_res);
46 }
47
48 kdb_fullresync_result_t *
iprop_full_resync_1(void * argp,CLIENT * clnt)49 iprop_full_resync_1(void *argp, CLIENT *clnt)
50 {
51 static kdb_fullresync_result_t clnt_res;
52
53 memset(&clnt_res, 0, sizeof(clnt_res));
54 if (clnt_call (clnt, IPROP_FULL_RESYNC,
55 (xdrproc_t) xdr_void, (caddr_t) argp,
56 (xdrproc_t) xdr_kdb_fullresync_result_t, (caddr_t) &clnt_res,
57 TIMEOUT) != RPC_SUCCESS) {
58 return (NULL);
59 }
60 return (&clnt_res);
61 }
62