aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-20 16:00:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-20 16:00:53 +0100
commitff7e5fdcae5a41cb3342c7fadf48ddc459ed0c0f (patch)
tree14e2c0bcfa3bbe7499cba9add41ea4e4f8c1d985 /src/libserver/html.h
parent386fac2a80973445a46ea59fbbb868e7f366b58d (diff)
downloadrspamd-ff7e5fdcae5a41cb3342c7fadf48ddc459ed0c0f.tar.gz
rspamd-ff7e5fdcae5a41cb3342c7fadf48ddc459ed0c0f.zip
Parse HTML styles.
Diffstat (limited to 'src/libserver/html.h')
-rw-r--r--src/libserver/html.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/html.h b/src/libserver/html.h
index 29716eb75..44e670922 100644
--- a/src/libserver/html.h
+++ b/src/libserver/html.h
@@ -28,6 +28,8 @@ enum html_component_type {
RSPAMD_HTML_COMPONENT_NAME = 0,
RSPAMD_HTML_COMPONENT_HREF,
RSPAMD_HTML_COMPONENT_COLOR,
+ RSPAMD_HTML_COMPONENT_STYLE,
+ RSPAMD_HTML_COMPONENT_CLASS,
RSPAMD_HTML_COMPONENT_WIDTH,
RSPAMD_HTML_COMPONENT_HEIGHT
};
@@ -45,6 +47,15 @@ struct html_image {
gchar *src;
};
+struct html_block {
+ gint id;
+ gchar *font_color;
+ gchar *background_color;
+ gchar *style;
+ guint font_size;
+ gchar *class;
+};
+
struct html_tag {
gint id;
struct html_tag_component name;
@@ -60,6 +71,7 @@ struct html_content {
gint flags;
guchar *tags_seen;
GPtrArray *images;
+ GPtrArray *blocks;
};
/*