spray.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _SPRAY_H_RPCGEN
  6. #define _SPRAY_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define SPRAYMAX 8845
  12. struct spraytimeval {
  13. u_int sec;
  14. u_int usec;
  15. };
  16. typedef struct spraytimeval spraytimeval;
  17. struct spraycumul {
  18. u_int counter;
  19. spraytimeval clock;
  20. };
  21. typedef struct spraycumul spraycumul;
  22. typedef struct {
  23. u_int sprayarr_len;
  24. char *sprayarr_val;
  25. } sprayarr;
  26. #define SPRAYPROG 100012
  27. #define SPRAYVERS 1
  28. #if defined(__STDC__) || defined(__cplusplus)
  29. #define SPRAYPROC_SPRAY 1
  30. extern void * sprayproc_spray_1(sprayarr *, CLIENT *);
  31. extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
  32. #define SPRAYPROC_GET 2
  33. extern spraycumul * sprayproc_get_1(void *, CLIENT *);
  34. extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
  35. #define SPRAYPROC_CLEAR 3
  36. extern void * sprayproc_clear_1(void *, CLIENT *);
  37. extern void * sprayproc_clear_1_svc(void *, struct svc_req *);
  38. extern int sprayprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  39. #else /* K&R C */
  40. #define SPRAYPROC_SPRAY 1
  41. extern void * sprayproc_spray_1();
  42. extern void * sprayproc_spray_1_svc();
  43. #define SPRAYPROC_GET 2
  44. extern spraycumul * sprayproc_get_1();
  45. extern spraycumul * sprayproc_get_1_svc();
  46. #define SPRAYPROC_CLEAR 3
  47. extern void * sprayproc_clear_1();
  48. extern void * sprayproc_clear_1_svc();
  49. extern int sprayprog_1_freeresult ();
  50. #endif /* K&R C */
  51. /* the xdr functions */
  52. #if defined(__STDC__) || defined(__cplusplus)
  53. extern bool_t xdr_spraytimeval (XDR *, spraytimeval*);
  54. extern bool_t xdr_spraycumul (XDR *, spraycumul*);
  55. extern bool_t xdr_sprayarr (XDR *, sprayarr*);
  56. #else /* K&R C */
  57. extern bool_t xdr_spraytimeval ();
  58. extern bool_t xdr_spraycumul ();
  59. extern bool_t xdr_sprayarr ();
  60. #endif /* K&R C */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif /* !_SPRAY_H_RPCGEN */