}
static void
-folder_ref_message_info (CamelFolder *folder,
- CamelMessageInfo *info)
-{
- g_return_if_fail (folder->summary != NULL);
-
- camel_message_info_ref (info);
-}
-
-static void
folder_free_message_info (CamelFolder *folder,
CamelMessageInfo *info)
{
class->free_summary = folder_free_summary;
class->search_free = folder_search_free;
class->get_message_info = folder_get_message_info;
- class->ref_message_info = folder_ref_message_info;
class->free_message_info = folder_free_message_info;
class->delete_ = folder_delete;
class->rename = folder_rename;
class->free_message_info (folder, info);
}
-/**
- * camel_folder_ref_message_info:
- * @folder: a #CamelFolder
- * @info: a #CamelMessageInfo
- *
- * DEPRECATED: Use camel_message_info_ref() directly.
- *
- * Ref a #CamelMessageInfo, previously obtained with
- * camel_folder_get_message_info().
- **/
-void
-camel_folder_ref_message_info (CamelFolder *folder,
- CamelMessageInfo *info)
-{
- CamelFolderClass *class;
-
- g_return_if_fail (CAMEL_IS_FOLDER (folder));
- g_return_if_fail (info != NULL);
-
- class = CAMEL_FOLDER_GET_CLASS (folder);
- g_return_if_fail (class->ref_message_info != NULL);
-
- class->ref_message_info (folder, info);
-}
-
/* TODO: is this function required anyway? */
/**
* camel_folder_has_summary_capability:
CamelMessageInfo *
(*get_message_info) (CamelFolder *folder,
const gchar *uid);
- void (*ref_message_info) (CamelFolder *folder,
- CamelMessageInfo *info);
void (*free_message_info) (CamelFolder *folder,
CamelMessageInfo *info);
void (*delete_) (CamelFolder *folder);
const gchar *uid);
void camel_folder_free_message_info (CamelFolder *folder,
CamelMessageInfo *info);
-#ifndef CAMEL_DISABLE_DEPRECATED
-void camel_folder_ref_message_info (CamelFolder *folder,
- CamelMessageInfo *info);
-#endif
void camel_folder_delete (CamelFolder *folder);
void camel_folder_rename (CamelFolder *folder,
const gchar *new_name);