X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Frx.h;h=b976fc19ce44dd0b9b4ab7a22f1b0e9ec729941f;hp=a827b82de12207f847a85e3125981e8de01d7d3f;hb=6b771604433435b4280a5fbae2612134fe4129dd;hpb=9fde23d2b9a4ba8076eb425a1af4342de1e485b5 diff --git a/lib-lib/rx.h b/lib-lib/rx.h index a827b82..b976fc1 100644 --- a/lib-lib/rx.h +++ b/lib-lib/rx.h @@ -48,13 +48,17 @@ typedef struct rx_t { char *template; /* out template */ } rx_t; -rx_t* rx_compile(const char*, int); +rx_t *rx_compile(const char*, int); +int rx_validate(const char*, char*, ssize_t); void rx_set_template(rx_t *, const char*); -void rx_delete(rx_t **); +void rx_wipe(rx_t *); +DO_DELETE(rx_t, rx); + DO_SLIST(rx_t, rx, rx_delete); /* for handling lists */ int rx_list_match(rx_t *, const char*); /* match all items list agains string */ +int rx_list_match2(rx_t *l, const char *s, char *dst, int dlen); rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */ int rx_sanitize_string(char *, ssize_t, const char *);