-int rx_list_match(list2_t*, const char*); /* match all items list agains string */
-int rx_lookup(list2_t*, const char*); /* lookup pattern */
+rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */
+
+int rx_list_match(rx_t *, const char*); /* match all items list agains string */
+void rx_list_add(rx_t **, rx_t *);
+void rx_list_remove(rx_t **, const rx_t *);
+
+int rx_list_match2(rx_t *l, const char *s, char *dst, int dlen);
+void rx_list_add2(rx_t **, rx_t **);