|
Packit |
fd8b60 |
/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
|
|
Packit |
fd8b60 |
* Use is subject to license terms.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Please do not edit this file.
|
|
Packit |
fd8b60 |
* It was generated using rpcgen.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#include <memory.h> /* for memset */
|
|
Packit |
fd8b60 |
#include "iprop.h"
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/* Default timeout can be changed using clnt_control() */
|
|
Packit |
fd8b60 |
static struct timeval TIMEOUT = { 25, 0 };
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
void *
|
|
Packit |
fd8b60 |
iprop_null_1(void *argp, CLIENT *clnt)
|
|
Packit |
fd8b60 |
{
|
|
Packit |
fd8b60 |
static char clnt_res;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
memset(&clnt_res, 0, sizeof(clnt_res));
|
|
Packit |
fd8b60 |
if (clnt_call (clnt, IPROP_NULL,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_void, (caddr_t) argp,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_void, (caddr_t) &clnt_res,
|
|
Packit |
fd8b60 |
TIMEOUT) != RPC_SUCCESS) {
|
|
Packit |
fd8b60 |
return (NULL);
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
return ((void *)&clnt_res);
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
kdb_incr_result_t *
|
|
Packit |
fd8b60 |
iprop_get_updates_1(kdb_last_t *argp, CLIENT *clnt)
|
|
Packit |
fd8b60 |
{
|
|
Packit |
fd8b60 |
static kdb_incr_result_t clnt_res;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
memset(&clnt_res, 0, sizeof(clnt_res));
|
|
Packit |
fd8b60 |
if (clnt_call (clnt, IPROP_GET_UPDATES,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_kdb_last_t, (caddr_t) argp,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_kdb_incr_result_t, (caddr_t) &clnt_res,
|
|
Packit |
fd8b60 |
TIMEOUT) != RPC_SUCCESS) {
|
|
Packit |
fd8b60 |
return (NULL);
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
return (&clnt_res);
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
kdb_fullresync_result_t *
|
|
Packit |
fd8b60 |
iprop_full_resync_1(void *argp, CLIENT *clnt)
|
|
Packit |
fd8b60 |
{
|
|
Packit |
fd8b60 |
static kdb_fullresync_result_t clnt_res;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
memset(&clnt_res, 0, sizeof(clnt_res));
|
|
Packit |
fd8b60 |
if (clnt_call (clnt, IPROP_FULL_RESYNC,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_void, (caddr_t) argp,
|
|
Packit |
fd8b60 |
(xdrproc_t) xdr_kdb_fullresync_result_t, (caddr_t) &clnt_res,
|
|
Packit |
fd8b60 |
TIMEOUT) != RPC_SUCCESS) {
|
|
Packit |
fd8b60 |
return (NULL);
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
return (&clnt_res);
|
|
Packit |
fd8b60 |
}
|