moved all modes to an extra ModeNode struct
[NeonServV5.git] / ModeNode.h
1 #ifndef _ModeNode_h
2 #define _ModeNode_h
3 #include "main.h"
4
5 struct ChanNode;
6
7 struct ModeNode {
8     struct ChanNode *chan;
9     unsigned int modes;
10     char **mode_str_args;
11     int *mode_int_args;
12 };
13
14 void init_ModeNode();
15 struct ModeNode *createModeNode(struct ChanNode *chan);
16 void freeModeNode(struct ModeNode *modes);
17 int isModeSet(struct ModeNode* modes, char modeChar);
18 void* getModeValue(struct ModeNode* modes, char modeChar);
19 void parseModes(struct ModeNode* modes, char *modeStr, char **argv, int argc);
20 void getModeString(struct ModeNode* modes, char *modesStr);
21
22 #endif