Home | History | Annotate | Download | only in rpcsvc
      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 
     12 #ifdef __cplusplus
     13 extern "C" {
     14 #endif
     15 
     16 #define SPRAYMAX 8845
     17 
     18 struct spraytimeval {
     19 	u_int sec;
     20 	u_int usec;
     21 };
     22 typedef struct spraytimeval spraytimeval;
     23 
     24 struct spraycumul {
     25 	u_int counter;
     26 	spraytimeval clock;
     27 };
     28 typedef struct spraycumul spraycumul;
     29 
     30 typedef struct {
     31 	u_int sprayarr_len;
     32 	char *sprayarr_val;
     33 } sprayarr;
     34 
     35 #define SPRAYPROG 100012
     36 #define SPRAYVERS 1
     37 
     38 #if defined(__STDC__) || defined(__cplusplus)
     39 #define SPRAYPROC_SPRAY 1
     40 extern  void * sprayproc_spray_1(sprayarr *, CLIENT *);
     41 extern  void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
     42 #define SPRAYPROC_GET 2
     43 extern  spraycumul * sprayproc_get_1(void *, CLIENT *);
     44 extern  spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
     45 #define SPRAYPROC_CLEAR 3
     46 extern  void * sprayproc_clear_1(void *, CLIENT *);
     47 extern  void * sprayproc_clear_1_svc(void *, struct svc_req *);
     48 extern int sprayprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
     49 
     50 #else /* K&R C */
     51 #define SPRAYPROC_SPRAY 1
     52 extern  void * sprayproc_spray_1();
     53 extern  void * sprayproc_spray_1_svc();
     54 #define SPRAYPROC_GET 2
     55 extern  spraycumul * sprayproc_get_1();
     56 extern  spraycumul * sprayproc_get_1_svc();
     57 #define SPRAYPROC_CLEAR 3
     58 extern  void * sprayproc_clear_1();
     59 extern  void * sprayproc_clear_1_svc();
     60 extern int sprayprog_1_freeresult ();
     61 #endif /* K&R C */
     62 
     63 /* the xdr functions */
     64 
     65 #if defined(__STDC__) || defined(__cplusplus)
     66 extern  bool_t xdr_spraytimeval (XDR *, spraytimeval*);
     67 extern  bool_t xdr_spraycumul (XDR *, spraycumul*);
     68 extern  bool_t xdr_sprayarr (XDR *, sprayarr*);
     69 
     70 #else /* K&R C */
     71 extern bool_t xdr_spraytimeval ();
     72 extern bool_t xdr_spraycumul ();
     73 extern bool_t xdr_sprayarr ();
     74 
     75 #endif /* K&R C */
     76 
     77 #ifdef __cplusplus
     78 }
     79 #endif
     80 
     81 #endif /* !_SPRAY_H_RPCGEN */
     82