6 #define TABLE_FLAG_USE_POINTER 0x01
7 #define TABLE_FLAG_COL_BOLD 0x02
23 char **table_lines; //we just store this to free it in table_free
27 struct ClientSocket *client;
28 struct ChanNode *chan;
29 char addModes[MAXMODES];
30 char delModes[MAXMODES];
31 char *addModesParams[MAXMODES];
32 char *delModesParams[MAXMODES];
37 int match(const char *mask, const char *name);
39 struct Table *table_init(int width, int length, int flags);
40 int table_add(struct Table *table, char **entry);
41 int table_set_bold(struct Table *table, int collum, int bold);
42 char **table_end(struct Table *table);
43 void table_free(struct Table *table);
45 char* timeToStr(struct UserNode *user, int seconds, int items, char *buf);
46 int strToTime(struct UserNode *user, char *str);
48 struct ModeBuffer* initModeBuffer(struct ClientSocket *client, struct ChanNode *chan);
49 #define modeBufferSimpleMode(MODEBUF,ADD,MODE) modeBufferSet(MODEBUF, ADD, MODE, NULL)
50 #define modeBufferOp(MODEBUF,USER) modeBufferSet(MODEBUF, 1, 'o', USER)
51 #define modeBufferDeop(MODEBUF,USER) modeBufferSet(MODEBUF, 0, 'o', USER)
52 #define modeBufferVoice(MODEBUF,USER) modeBufferSet(MODEBUF, 1, 'v', USER)
53 #define modeBufferDevoice(MODEBUF,USER) modeBufferSet(MODEBUF, 0, 'v', USER)
54 void modeBufferSet(struct ModeBuffer *modeBuf, int add, char mode, char *param);
55 void flushModeBuffer(struct ModeBuffer *modeBuf);
56 void freeModeBuffer(struct ModeBuffer *modeBuf);