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