* lib: cleanups: remove mu-msg-cache (WIP)

This commit is contained in:
djcb
2012-08-08 19:13:59 +03:00
parent bb0488bba0
commit c3391b3929
10 changed files with 138 additions and 687 deletions

View File

@ -53,11 +53,9 @@ void mu_msg_file_destroy (MuMsgFile *self);
* @param self a MuMsgFile instance
* @param header a header (e.g. 'X-Mailer' or 'List-Id')
*
* @return the value of the header or NULL if not found. Note, only
* valid as long as this MuMsgFile is valid -- before
* mu_msg_file_destroy
* @return the value of the header or NULL if not found; free with g_free
*/
const char* mu_msg_file_get_header (MuMsgFile *self, const char *header);
char* mu_msg_file_get_header (MuMsgFile *self, const char *header);
/**
@ -84,17 +82,10 @@ char* mu_msg_file_get_str_field (MuMsgFile *self,
*
* @param self a valid MuMsgFile
* @param msfid the message field id to get (must be of type string-list)
* @param do_free receives TRUE or FALSE, conveying if this string
* should be owned & freed (TRUE) or not by caller. In case 'FALSE',
* this function should be treated as if it were returning a const
* GSList*, and note that in that case the string is only valid as long
* as the MuMsgFile is alive, ie. before mu_msg_file_destroy
*
* @return a GSList*, or NULL
* @return a GSList*, or NULL; free with mu_str_free_list
*/
GSList* mu_msg_file_get_str_list_field (MuMsgFile *self,
MuMsgFieldId msfid,
gboolean *do_free)
GSList* mu_msg_file_get_str_list_field (MuMsgFile *self, MuMsgFieldId msfid)
G_GNUC_WARN_UNUSED_RESULT;