kopia lustrzana https://github.com/Hamlib/Hamlib
56 wiersze
1.2 KiB
C
56 wiersze
1.2 KiB
C
/*
|
|
* Please do not edit this file.
|
|
* It was generated using rpcgen.
|
|
*/
|
|
|
|
#include <memory.h> /* for memset */
|
|
#include "rpcrig.h"
|
|
|
|
/* Default timeout can be changed using clnt_control() */
|
|
static struct timeval TIMEOUT = { 25, 0 };
|
|
|
|
model_x *
|
|
getmodel_1(void *argp, CLIENT *clnt)
|
|
{
|
|
static model_x clnt_res;
|
|
|
|
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
|
if (clnt_call (clnt, GETMODEL,
|
|
(xdrproc_t) xdr_void, (caddr_t) argp,
|
|
(xdrproc_t) xdr_model_x, (caddr_t) &clnt_res,
|
|
TIMEOUT) != RPC_SUCCESS) {
|
|
return (NULL);
|
|
}
|
|
return (&clnt_res);
|
|
}
|
|
|
|
int *
|
|
setfreq_1(freq_arg *argp, CLIENT *clnt)
|
|
{
|
|
static int clnt_res;
|
|
|
|
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
|
if (clnt_call (clnt, SETFREQ,
|
|
(xdrproc_t) xdr_freq_arg, (caddr_t) argp,
|
|
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
|
|
TIMEOUT) != RPC_SUCCESS) {
|
|
return (NULL);
|
|
}
|
|
return (&clnt_res);
|
|
}
|
|
|
|
freq_res *
|
|
getfreq_1(vfo_x *argp, CLIENT *clnt)
|
|
{
|
|
static freq_res clnt_res;
|
|
|
|
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
|
if (clnt_call (clnt, GETFREQ,
|
|
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
|
|
(xdrproc_t) xdr_freq_res, (caddr_t) &clnt_res,
|
|
TIMEOUT) != RPC_SUCCESS) {
|
|
return (NULL);
|
|
}
|
|
return (&clnt_res);
|
|
}
|