Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / rxgen / rxgen_consts.h
1 #ifndef _RXGEN_CONSTS_
2 #define _RXGEN_CONSTS_
3
4 /* These are some rxgen-based (really arbitrary) error codes... */
5 #define RXGEN_SUCCESS       0
6 #define RXGEN_CC_MARSHAL    -450
7 #define RXGEN_CC_UNMARSHAL  -451
8 #define RXGEN_SS_MARSHAL    -452
9 #define RXGEN_SS_UNMARSHAL  -453
10 #define RXGEN_DECODE        -454
11 #define RXGEN_OPCODE        -455
12 #define RXGEN_SS_XDRFREE    -456
13 #define RXGEN_CC_XDRFREE    -457
14
15 /* These are some rxgen defines */
16 #define RXGEN_MAKECALL_TIMEOUT  0
17 #define RXGEN_WAIT              1
18 #define RXGEN_DONTWAIT          0
19
20 #define MAX_PACKAGES    10
21 #define MAX_FUNCTION_NAME_LEN 200
22 #define MAX_FUNCTIONS_PER_PACKAGE 500
23 #define MAX_FUNCTIONS_PER_INTERFACE (MAX_FUNCTIONS_PER_PACKAGE * MAX_PACKAGES)
24
25 #ifndef AFS_SGI61_ENV
26 /* SGI 6.1 and up do include xdr_char */
27 #ifdef KERNEL
28 /* kernel's xdr.h doesn't normally define these things, but we need them */
29 /* some environments turn these into macros which don't compile... */
30 #ifndef xdr_char
31 extern bool_t   xdr_char();
32 #endif /* xdr_char */
33
34 #ifndef xdr_u_char
35 extern bool_t   xdr_u_char();
36 #endif /* xdr_u_char */
37 #endif /* KERNEL */
38 #endif /* AFS_SGI61_ENV */
39 #endif /* _RXGEN_CONSTS_ */