X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Ffe-common%2Fcore%2Fhilight-text.h;fp=apps%2Firssi%2Fsrc%2Ffe-common%2Fcore%2Fhilight-text.h;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=74c58780c2ffb63dc7fa2185831f135be7989a32;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/irssi/src/fe-common/core/hilight-text.h b/apps/irssi/src/fe-common/core/hilight-text.h deleted file mode 100644 index 74c58780..00000000 --- a/apps/irssi/src/fe-common/core/hilight-text.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef __HILIGHT_TEXT_H -#define __HILIGHT_TEXT_H - -#ifdef HAVE_REGEX_H -# include -#endif - -#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 */ - int level; /* match only messages with this level, 0=default */ - char *color; /* if starts with number, \003 is automatically - inserted before it. */ - char *act_color; /* color for window activity */ - int priority; - - unsigned int nick:1; /* hilight only nick if possible */ - unsigned int word:1; /* hilight only word, not full line */ - - unsigned int nickmask:1; /* `text' is a nick mask */ - unsigned int fullword:1; /* match `text' only for full words */ - unsigned int regexp:1; /* `text' is a regular expression */ -#ifdef HAVE_REGEX_H - unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */ - regex_t preg; -#endif -}; - -extern GSList *hilights; - -HILIGHT_REC *hilight_match(SERVER_REC *server, const char *channel, - const char *nick, const char *address, - int level, const char *str, - int *match_beg, int *match_end); - -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); - -#endif