diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-20 16:46:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-20 16:46:01 +0100 |
commit | a84777f6da86a1e0b79427c13e3a7ff6d97736d5 (patch) | |
tree | 94de1ba9cc0df8b9e35c510bbbeabefcfd05c5f2 /src/libserver/html.h | |
parent | ff7e5fdcae5a41cb3342c7fadf48ddc459ed0c0f (diff) | |
download | rspamd-a84777f6da86a1e0b79427c13e3a7ff6d97736d5.tar.gz rspamd-a84777f6da86a1e0b79427c13e3a7ff6d97736d5.zip |
Add HTML colors parser.
Diffstat (limited to 'src/libserver/html.h')
-rw-r--r-- | src/libserver/html.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/libserver/html.h b/src/libserver/html.h index 44e670922..912f5ef6a 100644 --- a/src/libserver/html.h +++ b/src/libserver/html.h @@ -47,10 +47,29 @@ struct html_image { gchar *src; }; +struct html_color { + union { + struct { +#if !defined(BYTE_ORDER) || BYTE_ORDER == LITTLE_ENDIAN + guint8 b; + guint8 g; + guint8 r; + guint8 alpha; +#else + guint8 alpha; + guint8 r; + guint8 g; + guint8 b; +#endif + } comp; + guint32 val; + } d; +}; + struct html_block { gint id; - gchar *font_color; - gchar *background_color; + struct html_color font_color; + struct html_color background_color; gchar *style; guint font_size; gchar *class; |