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