Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / fe-common / core / module.h
1 #include "common.h"
2
3 #define MODULE_NAME "fe-common/core"
4
5 typedef guint32 unichar;
6 typedef struct {
7         time_t time;
8         char *nick;
9
10         /* channel specific msg to/from me - this is actually a reference
11            count. it begins from `completion_keep_publics' and is decreased
12            every time some nick is added to lastmsgs list.
13
14            this is because of how the nick completion works. the same nick
15            is never in the lastmsgs list twice, but every time it's used
16            it's just moved to the beginning of the list. if this would be
17            just a boolean value the own-status would never be removed
18            from the nick if it didn't keep quiet for long enough.
19
20            so, the own-status is rememberd only for the last
21            `completion_keep_publics' lines */
22         int own;
23 } LAST_MSG_REC;
24
25 typedef struct {
26         /* /MSG completion: */
27         GSList *lastmsgs; /* list of nicks who sent you msg or
28                              to who you send msg */
29 } MODULE_SERVER_REC;
30
31 typedef struct {
32         /* nick completion: */
33         GSList *lastmsgs; /* list of nicks who sent latest msgs and
34                              list of nicks who you sent msgs to */
35 } MODULE_CHANNEL_REC;