view src/lib-mail/message-part-serialize.h @ 113:76a3a6c0c452 HEAD

forgot to add before
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Sep 2002 20:11:26 +0300
parents
children ad47775241a6
line wrap: on
line source

#ifndef __MESSAGE_PART_SERIALIZE_H
#define __MESSAGE_PART_SERIALIZE_H

/* Serialize message part, allocating memory from temporary pool.
   size is updated to contain the size of returned data. */
const void *message_part_serialize(MessagePart *part, unsigned int *size);

/* Generate MessagePart from serialized data. */
MessagePart *message_part_deserialize(Pool pool, const void *data,
				      unsigned int size);

#endif