home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Photo CD Demo 1
/
Demo.bin
/
inetray
/
intrycln.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-04
|
2KB
|
100 lines
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <rpc/rpc.h>
#include "inetray.h"
#include <sys/param.h>
#ifndef ITIMER_REAL
#include <sys/time.h> /* for A/UX */
#endif
#include "config.h"
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
void *
init_1(argp, clnt)
iPrm *argp;
CLIENT *clnt;
{
static char res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, INIT, xdr_iPrm, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return ((void *)&res);
}
int *
startframe_1(argp, clnt)
sfPrm *argp;
CLIENT *clnt;
{
static int res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, STARTFRAME, xdr_sfPrm, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&res);
}
void *
traceblock_1(argp, clnt)
tbPrm *argp;
CLIENT *clnt;
{
static char res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, TRACEBLOCK, xdr_tbPrm, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return ((void *)&res);
}
int *
kill_1(argp, clnt)
int *argp;
CLIENT *clnt;
{
static int res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, KILL, xdr_int, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&res);
}
int *
wait_1(argp, clnt)
int *argp;
CLIENT *clnt;
{
static int res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, WAIT, xdr_int, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&res);
}
void *
terminate_1(argp, clnt)
int *argp;
CLIENT *clnt;
{
static char res;
bzero((char *)&res, sizeof(res));
if (clnt_call(clnt, TERMINATE, xdr_int, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return ((void *)&res);
}