ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/ermyth/include/flags.h
Revision: 1.4
Committed: Thu Aug 30 19:56:19 2007 UTC (19 years ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.3: +2 -2 lines
Log Message:
- put faultcodes into their own namespace
- removed old files
- limited header garbage in atheme.h
- macros to inline bools for connection_t::is_*
- put some connection_t functions into the connection_t class

File Contents

# User Rev Content
1 pippijn 1.1 /*
2 pippijn 1.3 * Copyright © 2005-2007 William Pitcock, et al.
3 pippijn 1.2 * Rights to this code are as documented in doc/pod/license.pod.
4 pippijn 1.1 *
5     * Data structures for flags to bitmask processing routines.
6     *
7 pippijn 1.4 * $Id: flags.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
8 pippijn 1.1 */
9    
10     #ifndef FLAGS_H
11     #define FLAGS_H
12    
13     /* flags stuff */
14     struct flags_table
15     {
16     char flag;
17 pippijn 1.4 unsigned value;
18 pippijn 1.1 };
19    
20     E unsigned int ca_all;
21     E struct flags_table chanacs_flags[];
22    
23 pippijn 1.3 E void flags_make_bitmasks (char const * const string, struct flags_table table[], unsigned int *addflags, unsigned int *removeflags);
24     E unsigned int flags_to_bitmask (char const * const string, struct flags_table table[], unsigned int flags);
25 pippijn 1.1 E char *bitmask_to_flags (unsigned int, struct flags_table[]);
26     E char *bitmask_to_flags2 (unsigned int, unsigned int, struct flags_table[]);
27     E unsigned int allow_flags (unsigned int flags);
28     E void update_chanacs_flags (void);
29    
30     #endif