File indexing completed on 2025-01-18 10:12:37
0001
0002
0003
0004
0005
0006 #ifndef _SPRAY_H_RPCGEN
0007 #define _SPRAY_H_RPCGEN
0008
0009 #include <rpc/rpc.h>
0010
0011
0012 #ifdef __cplusplus
0013 extern "C" {
0014 #endif
0015
0016 #define SPRAYMAX 8845
0017
0018 struct spraytimeval {
0019 u_int sec;
0020 u_int usec;
0021 };
0022 typedef struct spraytimeval spraytimeval;
0023
0024 struct spraycumul {
0025 u_int counter;
0026 spraytimeval clock;
0027 };
0028 typedef struct spraycumul spraycumul;
0029
0030 typedef struct {
0031 u_int sprayarr_len;
0032 char *sprayarr_val;
0033 } sprayarr;
0034
0035 #define SPRAYPROG 100012
0036 #define SPRAYVERS 1
0037
0038 #if defined(__STDC__) || defined(__cplusplus)
0039 #define SPRAYPROC_SPRAY 1
0040 extern void * sprayproc_spray_1(sprayarr *, CLIENT *);
0041 extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
0042 #define SPRAYPROC_GET 2
0043 extern spraycumul * sprayproc_get_1(void *, CLIENT *);
0044 extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
0045 #define SPRAYPROC_CLEAR 3
0046 extern void * sprayproc_clear_1(void *, CLIENT *);
0047 extern void * sprayproc_clear_1_svc(void *, struct svc_req *);
0048 extern int sprayprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
0049
0050 #else
0051 #define SPRAYPROC_SPRAY 1
0052 extern void * sprayproc_spray_1();
0053 extern void * sprayproc_spray_1_svc();
0054 #define SPRAYPROC_GET 2
0055 extern spraycumul * sprayproc_get_1();
0056 extern spraycumul * sprayproc_get_1_svc();
0057 #define SPRAYPROC_CLEAR 3
0058 extern void * sprayproc_clear_1();
0059 extern void * sprayproc_clear_1_svc();
0060 extern int sprayprog_1_freeresult ();
0061 #endif
0062
0063
0064
0065 #if defined(__STDC__) || defined(__cplusplus)
0066 extern bool_t xdr_spraytimeval (XDR *, spraytimeval*);
0067 extern bool_t xdr_spraycumul (XDR *, spraycumul*);
0068 extern bool_t xdr_sprayarr (XDR *, sprayarr*);
0069
0070 #else
0071 extern bool_t xdr_spraytimeval ();
0072 extern bool_t xdr_spraycumul ();
0073 extern bool_t xdr_sprayarr ();
0074
0075 #endif
0076
0077 #ifdef __cplusplus
0078 }
0079 #endif
0080
0081 #endif