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 /*
16  * Copyright (c) 1987, 1991 by Sun Microsystems, Inc.
17  */
18 /* from spray.x */
19 
20 #pragma ident	"%Z%%M%	%I%	%E% SMI"
21 
22 #define	SPRAYMAX 8845
23 
24 struct spraytimeval {
25 	u_int sec;
26 	u_int usec;
27 };
28 typedef struct spraytimeval spraytimeval;
29 
30 struct spraycumul {
31 	u_int counter;
32 	spraytimeval clock;
33 };
34 typedef struct spraycumul spraycumul;
35 
36 typedef struct {
37 	u_int sprayarr_len;
38 	char *sprayarr_val;
39 } sprayarr;
40 
41 #define	SPRAYPROG	100012
42 #define	SPRAYVERS	1
43 
44 #if defined(__STDC__) || defined(__cplusplus)
45 #define	SPRAYPROC_SPRAY	1
46 extern  void * sprayproc_spray_1(sprayarr *, CLIENT *);
47 extern  void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
48 #define	SPRAYPROC_GET	2
49 extern  spraycumul * sprayproc_get_1(void *, CLIENT *);
50 extern  spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
51 #define	SPRAYPROC_CLEAR	3
52 extern  void * sprayproc_clear_1(void *, CLIENT *);
53 extern  void * sprayproc_clear_1_svc(void *, struct svc_req *);
54 extern int sprayprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
55 
56 #else /* K&R C */
57 #define	SPRAYPROC_SPRAY	1
58 extern  void * sprayproc_spray_1();
59 extern  void * sprayproc_spray_1_svc();
60 #define	SPRAYPROC_GET	2
61 extern  spraycumul * sprayproc_get_1();
62 extern  spraycumul * sprayproc_get_1_svc();
63 #define	SPRAYPROC_CLEAR	3
64 extern  void * sprayproc_clear_1();
65 extern  void * sprayproc_clear_1_svc();
66 extern int sprayprog_1_freeresult();
67 #endif /* K&R C */
68 
69 /* the xdr functions */
70 
71 #if defined(__STDC__) || defined(__cplusplus)
72 extern  bool_t xdr_spraytimeval(XDR *, spraytimeval*);
73 extern  bool_t xdr_spraycumul(XDR *, spraycumul*);
74 extern  bool_t xdr_sprayarr(XDR *, sprayarr*);
75 
76 #else /* K&R C */
77 extern bool_t xdr_spraytimeval();
78 extern bool_t xdr_spraycumul();
79 extern bool_t xdr_sprayarr();
80 
81 #endif /* K&R C */
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* !_SPRAY_H_RPCGEN */
88