diff options
Diffstat (limited to 'src/lib-mail/message-part-serialize.h')
-rw-r--r-- | src/lib-mail/message-part-serialize.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib-mail/message-part-serialize.h b/src/lib-mail/message-part-serialize.h new file mode 100644 index 0000000..197c3b6 --- /dev/null +++ b/src/lib-mail/message-part-serialize.h @@ -0,0 +1,16 @@ +#ifndef MESSAGE_PART_SERIALIZE_H +#define MESSAGE_PART_SERIALIZE_H + +struct message_part; +struct message_size; + +/* Serialize message part. */ +void message_part_serialize(struct message_part *part, buffer_t *dest); + +/* Generate struct message_part from serialized data. Returns NULL and sets + error if any problems are detected. */ +struct message_part * +message_part_deserialize(pool_t pool, const void *data, size_t size, + const char **error_r); + +#endif |