diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-05 15:36:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-05 15:36:43 +0000 |
commit | d26c0a18a7c5670e97bc23c902b609e17979122f (patch) | |
tree | da5cf48e64bdd08363b3a7af0f04c70e3087a076 /src/libserver/url.h | |
parent | f56cb9d4eca864b9943d33c1f83fcff49ec58a67 (diff) | |
download | rspamd-d26c0a18a7c5670e97bc23c902b609e17979122f.tar.gz rspamd-d26c0a18a7c5670e97bc23c902b609e17979122f.zip |
[Feature] Implement url tags concept
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r-- | src/libserver/url.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h index 2e1862090..eb70a9672 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -42,6 +42,7 @@ struct rspamd_url { guint urllen; enum rspamd_url_flags flags; + GPtrArray *tags; }; enum uri_errno { @@ -161,4 +162,13 @@ void rspamd_url_find_single (rspamd_mempool_t *pool, const gchar *in, void rspamd_url_task_callback (struct rspamd_url *url, gsize start_offset, gsize end_offset, gpointer ud); +/** + * Adds a tag for url + * @param url + * @param tag + * @param pool + */ +void rspamd_url_add_tag (struct rspamd_url *url, const gchar *tag, + rspamd_mempool_t *pool); + #endif |