home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / inetray / intrycln.c < prev    next >
C/C++ Source or Header  |  1992-06-04  |  2KB  |  100 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <rpc/rpc.h>
  7. #include "inetray.h"
  8. #include    <sys/param.h>
  9. #ifndef ITIMER_REAL
  10. #include    <sys/time.h>        /* for A/UX */
  11. #endif
  12. #include    "config.h"
  13.  
  14. /* Default timeout can be changed using clnt_control() */
  15. static struct timeval TIMEOUT = { 25, 0 };
  16.  
  17. void *
  18. init_1(argp, clnt)
  19.     iPrm *argp;
  20.     CLIENT *clnt;
  21. {
  22.     static char res;
  23.  
  24.     bzero((char *)&res, sizeof(res));
  25.     if (clnt_call(clnt, INIT, xdr_iPrm, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  26.         return (NULL);
  27.     }
  28.     return ((void *)&res);
  29. }
  30.  
  31. int *
  32. startframe_1(argp, clnt)
  33.     sfPrm *argp;
  34.     CLIENT *clnt;
  35. {
  36.     static int res;
  37.  
  38.     bzero((char *)&res, sizeof(res));
  39.     if (clnt_call(clnt, STARTFRAME, xdr_sfPrm, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
  40.         return (NULL);
  41.     }
  42.     return (&res);
  43. }
  44.  
  45. void *
  46. traceblock_1(argp, clnt)
  47.     tbPrm *argp;
  48.     CLIENT *clnt;
  49. {
  50.     static char res;
  51.  
  52.     bzero((char *)&res, sizeof(res));
  53.     if (clnt_call(clnt, TRACEBLOCK, xdr_tbPrm, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  54.         return (NULL);
  55.     }
  56.     return ((void *)&res);
  57. }
  58.  
  59. int *
  60. kill_1(argp, clnt)
  61.     int *argp;
  62.     CLIENT *clnt;
  63. {
  64.     static int res;
  65.  
  66.     bzero((char *)&res, sizeof(res));
  67.     if (clnt_call(clnt, KILL, xdr_int, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
  68.         return (NULL);
  69.     }
  70.     return (&res);
  71. }
  72.  
  73. int *
  74. wait_1(argp, clnt)
  75.     int *argp;
  76.     CLIENT *clnt;
  77. {
  78.     static int res;
  79.  
  80.     bzero((char *)&res, sizeof(res));
  81.     if (clnt_call(clnt, WAIT, xdr_int, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) {
  82.         return (NULL);
  83.     }
  84.     return (&res);
  85. }
  86.  
  87. void *
  88. terminate_1(argp, clnt)
  89.     int *argp;
  90.     CLIENT *clnt;
  91. {
  92.     static char res;
  93.  
  94.     bzero((char *)&res, sizeof(res));
  95.     if (clnt_call(clnt, TERMINATE, xdr_int, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  96.         return (NULL);
  97.     }
  98.     return ((void *)&res);
  99. }
  100.