diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 16:25:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 16:25:51 +0100 |
commit | 61555065f3d1c8badcc9573691232f1b6e42988c (patch) | |
tree | 563d5b7cb8c468530f7e79c4da0a75267b1184e1 /src/libmime/images.h | |
parent | ad5bf825b7f33bc10311673991f0cc888e69c0b1 (diff) | |
download | rspamd-61555065f3d1c8badcc9573691232f1b6e42988c.tar.gz rspamd-61555065f3d1c8badcc9573691232f1b6e42988c.zip |
Rework project structure, remove trash files.
Diffstat (limited to 'src/libmime/images.h')
-rw-r--r-- | src/libmime/images.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libmime/images.h b/src/libmime/images.h new file mode 100644 index 000000000..c43941ebc --- /dev/null +++ b/src/libmime/images.h @@ -0,0 +1,33 @@ +#ifndef IMAGES_H_ +#define IMAGES_H_ + +#include "config.h" +#include "main.h" + +enum known_image_types { + IMAGE_TYPE_PNG, + IMAGE_TYPE_JPG, + IMAGE_TYPE_GIF, + IMAGE_TYPE_BMP, + IMAGE_TYPE_UNKNOWN = 9000 +}; + +struct rspamd_image { + enum known_image_types type; + GByteArray *data; + guint32 width; + guint32 height; + const gchar *filename; +}; + +/* + * Process images from a worker task + */ +void process_images (struct rspamd_task *task); + +/* + * Get textual representation of an image's type + */ +const gchar *image_type_str (enum known_image_types type); + +#endif /* IMAGES_H_ */ |