Added SILC Thread Queue API
[runtime.git] / apps / irssi / src / fe-common / core / hilight-text.h
index 92093bb126a8cc2df53ffb008e2715d104d8aecd..74c58780c2ffb63dc7fa2185831f135be7989a32 100644 (file)
@@ -5,7 +5,11 @@
 #  include <regex.h>
 #endif
 
-typedef struct {
+#include "formats.h"
+
+typedef struct _HILIGHT_REC HILIGHT_REC;
+
+struct _HILIGHT_REC {
        char *text;
 
        char **channels; /* if non-NULL, check the text only from these channels */
@@ -25,7 +29,7 @@ typedef struct {
        unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
        regex_t preg;
 #endif
-} HILIGHT_REC;
+};
 
 extern GSList *hilights;
 
@@ -34,9 +38,15 @@ HILIGHT_REC *hilight_match(SERVER_REC *server, const char *channel,
                           int level, const char *str,
                           int *match_beg, int *match_end);
 
-char *hilight_match_nick(SERVER_REC *server, const char *channel,
+HILIGHT_REC *hilight_match_nick(SERVER_REC *server, const char *channel,
                         const char *nick, const char *address,
                         int level, const char *msg);
+                        
+char *hilight_get_color(HILIGHT_REC *rec);
+void hilight_update_text_dest(TEXT_DEST_REC *dest, HILIGHT_REC *rec);
+
+void hilight_create(HILIGHT_REC *rec);
+void hilight_remove(HILIGHT_REC *rec);
 
 void hilight_text_init(void);
 void hilight_text_deinit(void);