* mu-msg-*: take mu_msg_cache into use

This commit is contained in:
Dirk-Jan C. Binnema
2011-05-14 18:07:51 +03:00
parent 0cd1e78239
commit c0a24cf7bc
5 changed files with 273 additions and 296 deletions

View File

@ -32,8 +32,8 @@ typedef struct _MuMsgFile MuMsgFile;
*
* @return a new MuMsg, or NULL in case of error
*/
MuMsgFile *mu_msg_file_new (const char *path, const char* mdir, GError **err);
MuMsgFile *mu_msg_file_new (const char *path,
const char* mdir, GError **err);
/**
* destroy a MuMsgFile object
@ -47,12 +47,16 @@ void mu_msg_file_destroy (MuMsgFile *self);
* get a string value for this message
*
* @param self a valid MuMsgFile
* @param msfid the message field id to get (must be string-based one)
* @param msfid the message field id to get (must be string-based one) *
* @param do_free receives TRUE or FALSE, conveying if this string
* should be freed (TRUE) or not by caller. In case 'FALSE', this
* function should be treated as if it were return a const char*
*
* @return a const string, or NULL
*/
const char* mu_msg_file_get_str_field (MuMsgFile *self,
MuMsgFieldId msfid);
char* mu_msg_file_get_str_field (MuMsgFile *self,
MuMsgFieldId msfid,
gboolean *do_free);
/**
* get a numeric value for this message -- the return value should be
@ -65,4 +69,5 @@ const char* mu_msg_file_get_str_field (MuMsgFile *self,
*/
gint64 mu_msg_file_get_num_field (MuMsgFile *self, MuMsgFieldId msfid);
#endif /*__MU_MSG_FILE_H__*/