Standardize License information
[openafs.git] / src / rxgen / rxgen_consts.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef _RXGEN_CONSTS_
11 #define _RXGEN_CONSTS_
12
13 /* These are some rxgen-based (really arbitrary) error codes... */
14 #define RXGEN_SUCCESS       0
15 #define RXGEN_CC_MARSHAL    -450
16 #define RXGEN_CC_UNMARSHAL  -451
17 #define RXGEN_SS_MARSHAL    -452
18 #define RXGEN_SS_UNMARSHAL  -453
19 #define RXGEN_DECODE        -454
20 #define RXGEN_OPCODE        -455
21 #define RXGEN_SS_XDRFREE    -456
22 #define RXGEN_CC_XDRFREE    -457
23
24 /* These are some rxgen defines */
25 #define RXGEN_MAKECALL_TIMEOUT  0
26 #define RXGEN_WAIT              1
27 #define RXGEN_DONTWAIT          0
28
29 #define MAX_PACKAGES    10
30 #define MAX_FUNCTION_NAME_LEN 200
31 #define MAX_FUNCTIONS_PER_PACKAGE 500
32 #define MAX_FUNCTIONS_PER_INTERFACE (MAX_FUNCTIONS_PER_PACKAGE * MAX_PACKAGES)
33
34 #ifndef AFS_SGI61_ENV
35 /* SGI 6.1 and up do include xdr_char */
36 #ifdef KERNEL
37 /* kernel's xdr.h doesn't normally define these things, but we need them */
38 /* some environments turn these into macros which don't compile... */
39 #ifndef xdr_char
40 extern bool_t   xdr_char();
41 #endif /* xdr_char */
42
43 #ifndef xdr_u_char
44 extern bool_t   xdr_u_char();
45 #endif /* xdr_u_char */
46 #endif /* KERNEL */
47 #endif /* AFS_SGI61_ENV */
48 #endif /* _RXGEN_CONSTS_ */