ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/flags.h
Revision: 1.1
Committed: Thu Jul 19 08:24:50 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Log Message:
initial import. the most important changes since Atheme are:
- fixed many memory leaks
- fixed many bugs
- converted to C++ and use more STL containers
- added a (not very enhanced yet) perl module
- greatly improved XML-RPC speed
- added a JSON-RPC module with code from json-cpp
- added a valgrind memcheck module to operserv
- added a more object oriented base64 implementation
- added a specialised unit test framework
- improved stability
- use gettimeofday() if available
- reworked adding/removing commands
- MemoServ IGNORE DEL can now remove indices

File Contents

# User Rev Content
1 pippijn 1.1 /*
2     * Copyright © 2005-2007 William Pitcock, et al.
3     * Rights to this code are as documented in doc/LICENSE.
4     *
5     * Data structures for flags to bitmask processing routines.
6     *
7     * $Id: flags.h 8027 2007-04-02 10:47:18Z nenolod $
8     */
9    
10     #ifndef FLAGS_H
11     #define FLAGS_H
12    
13     /* flags stuff */
14     struct flags_table
15     {
16     char flag;
17     int value;
18     };
19    
20     E unsigned int ca_all;
21     E struct flags_table chanacs_flags[];
22    
23     E void flags_make_bitmasks (const char *string, struct flags_table table[], unsigned int *addflags, unsigned int *removeflags);
24     E unsigned int flags_to_bitmask (const char *, struct flags_table[], unsigned int flags);
25     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