1 | /* |
1 | /* |
2 | * Copyright © 2005-2006 Atheme Development Group |
2 | * Copyright © 2005-2006 Atheme Development Group |
3 | * Rights to this code are as documented in doc/pod/license.pod. |
3 | * Rights to this code are as documented in doc/pod/license.pod. |
4 | * |
4 | * |
5 | * Defines needed by multiple header files. |
5 | * Defines needed by multiple header files. |
6 | * |
6 | * |
7 | * $Id: common.h,v 1.2 2007/07/21 01:29:07 pippijn Exp $ |
7 | * $Id: common.h,v 1.3 2007/08/28 17:08:06 pippijn Exp $ |
8 | */ |
8 | */ |
9 | |
9 | |
10 | #ifndef COMMON_H |
10 | #ifndef COMMON_H |
11 | #define COMMON_H |
11 | #define COMMON_H |
12 | |
12 | |
… | |
… | |
70 | #define CACHEFILE_HEAP_SIZE 32 |
70 | #define CACHEFILE_HEAP_SIZE 32 |
71 | #define CACHELINE_HEAP_SIZE 64 |
71 | #define CACHELINE_HEAP_SIZE 64 |
72 | |
72 | |
73 | enum faultcode_t |
73 | enum faultcode_t |
74 | { |
74 | { |
|
|
75 | fault_ok = 0, |
75 | fault_needmoreparams = 1, |
76 | fault_needmoreparams = 1, |
76 | fault_badparams = 2, |
77 | fault_badparams = 2, |
77 | fault_nosuch_source = 3, |
78 | fault_nosuch_source = 3, |
78 | fault_nosuch_target = 4, |
79 | fault_nosuch_target = 4, |
79 | fault_authfail = 5, |
80 | fault_authfail = 5, |
… | |
… | |
83 | fault_toomany = 9, |
84 | fault_toomany = 9, |
84 | fault_emailfail = 10, |
85 | fault_emailfail = 10, |
85 | fault_notverified = 11, |
86 | fault_notverified = 11, |
86 | fault_nochange = 12, |
87 | fault_nochange = 12, |
87 | fault_already_authed = 13, |
88 | fault_already_authed = 13, |
88 | fault_unimplemented = 14 |
89 | fault_unimplemented = 14, |
|
|
90 | fault_failed = 15 |
89 | }; |
91 | }; |
90 | |
92 | |
91 | #endif |
93 | #endif |