summaryrefslogtreecommitdiffstats
path: root/src/libserver/html.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 10:15:20 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 10:15:20 +0000
commit0784bf958e7657c68b06c98682d093d957e92bc0 (patch)
tree1a5d82279efec904235fa810382caeedf40c9d5b /src/libserver/html.h
parent6bc5286496c43a0ee9f1a616507c7aa03e28450c (diff)
downloadrspamd-0784bf958e7657c68b06c98682d093d957e92bc0.tar.gz
rspamd-0784bf958e7657c68b06c98682d093d957e92bc0.zip
Link html tags with extra data (urls, images)
Diffstat (limited to 'src/libserver/html.h')
-rw-r--r--src/libserver/html.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/html.h b/src/libserver/html.h
index c16e7b040..0e3c79c43 100644
--- a/src/libserver/html.h
+++ b/src/libserver/html.h
@@ -36,8 +36,8 @@ enum html_component_type {
struct html_tag_component {
enum html_component_type type;
- const guchar *start;
guint len;
+ const guchar *start;
};
struct html_image {
@@ -45,6 +45,7 @@ struct html_image {
guint width;
guint flags;
gchar *src;
+ struct html_tag *tag;
};
struct html_color {
@@ -78,9 +79,10 @@ struct html_block {
struct html_tag {
gint id;
+ gint flags;
struct html_tag_component name;
GQueue *params;
- gint flags;
+ gpointer extra; /** Additional data associated with tag (e.g. image) */
};
/* Forwarded declaration */