diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-23 13:41:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-23 13:41:05 +0100 |
commit | 41fc49bb5d1a2f9e9ac2c840744e26628312e812 (patch) | |
tree | 7b5463caaf94f0f0551e132de14ba1267b498a4c /src/libmime/images.h | |
parent | 6667595b57b5b1383f568b06c410d135d831b983 (diff) | |
download | rspamd-41fc49bb5d1a2f9e9ac2c840744e26628312e812.tar.gz rspamd-41fc49bb5d1a2f9e9ac2c840744e26628312e812.zip |
Refactor functions in images processing.
Diffstat (limited to 'src/libmime/images.h')
-rw-r--r-- | src/libmime/images.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libmime/images.h b/src/libmime/images.h index 5fcfdbc4c..5d01e6f75 100644 --- a/src/libmime/images.h +++ b/src/libmime/images.h @@ -4,31 +4,33 @@ #include "config.h" #include "main.h" -enum known_image_types { - IMAGE_TYPE_PNG, +struct html_image; + +enum rspamd_image_type { + IMAGE_TYPE_PNG = 0, IMAGE_TYPE_JPG, IMAGE_TYPE_GIF, IMAGE_TYPE_BMP, - IMAGE_TYPE_HTML, - IMAGE_TYPE_UNKNOWN = 9000 + IMAGE_TYPE_UNKNOWN }; struct rspamd_image { - enum known_image_types type; + enum rspamd_image_type type; GByteArray *data; guint32 width; guint32 height; const gchar *filename; + struct html_image *html_image; }; /* * Process images from a worker task */ -void process_images (struct rspamd_task *task); +void rspamd_images_process (struct rspamd_task *task); /* * Get textual representation of an image's type */ -const gchar * image_type_str (enum known_image_types type); +const gchar * rspamd_image_type_str (enum rspamd_image_type type); #endif /* IMAGES_H_ */ |