ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/common.h
(Generate patch)

Comparing ermyth/include/common.h (file contents):
Revision 1.3 by pippijn, Tue Aug 28 17:08:06 2007 UTC vs.
Revision 1.4 by pippijn, Thu Aug 30 19:56:19 2007 UTC

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.3 2007/08/28 17:08:06 pippijn Exp $ 7 * $Id: common.h,v 1.4 2007/08/30 19:56:19 pippijn Exp $
8 */ 8 */
9 9
10#ifndef COMMON_H 10#ifndef COMMON_H
11#define COMMON_H 11#define COMMON_H
12 12
68#define HASH_TRANS 2048 68#define HASH_TRANS 2048
69 69
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
73enum faultcode_t 73namespace fault
74{ 74{
75 enum code
76 {
75 fault_ok = 0, 77 ok = 0,
76 fault_needmoreparams = 1, 78 needmoreparams = 1,
77 fault_badparams = 2, 79 badparams = 2,
78 fault_nosuch_source = 3, 80 nosuch_source = 3,
79 fault_nosuch_target = 4, 81 nosuch_target = 4,
80 fault_authfail = 5, 82 authfail = 5,
81 fault_noprivs = 6, 83 noprivs = 6,
82 fault_nosuch_key = 7, 84 nosuch_key = 7,
83 fault_alreadyexists = 8, 85 alreadyexists = 8,
84 fault_toomany = 9, 86 toomany = 9,
85 fault_emailfail = 10, 87 emailfail = 10,
86 fault_notverified = 11, 88 notverified = 11,
87 fault_nochange = 12, 89 nochange = 12,
88 fault_already_authed = 13, 90 already_authed = 13,
89 fault_unimplemented = 14, 91 unimplemented = 14,
90 fault_failed = 15 92 failed = 15
91}; 93 };
92 94}
95
93#endif 96#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines