diff options
Diffstat (limited to 'chat.h')
-rw-r--r-- | chat.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/chat.h b/chat.h index 452470d..f3a102c 100644 --- a/chat.h +++ b/chat.h @@ -52,18 +52,6 @@ void eventWait(const char *argv[static 2]); void eventPipe(const char *argv[static 2]); noreturn void eventLoop(void); -struct Tag { - size_t id; - const char *name; -}; - -enum { TagsLen = 256 }; -const struct Tag TagNone; -const struct Tag TagStatus; -const struct Tag TagRaw; -struct Tag tagFind(const char *name); -struct Tag tagFor(const char *name); - enum IRCColor { IRCWhite, IRCBlack, @@ -92,6 +80,19 @@ enum { IRCUnderline = 037, }; +struct Tag { + size_t id; + const char *name; + enum IRCColor color; +}; + +enum { TagsLen = 256 }; +const struct Tag TagNone; +const struct Tag TagStatus; +const struct Tag TagRaw; +struct Tag tagFind(const char *name); +struct Tag tagFor(const char *name, enum IRCColor color); + struct Format { const wchar_t *str; size_t len; |