# 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 */
unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
regex_t preg;
#endif
-} HILIGHT_REC;
+};
extern GSList *hilights;
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);