Commit 6b6bd9cc 6b6bd9cc9d2ba319823be7dd7edb531d16cf41cd by Alain Magloire

* include/mailutils/message.h: New prototypes message_get_uid(),

message_set_get_uid().
* include/mailutils/mailbox.h: New prototypes mailbox_uidnext(),
mailbox_uidvalidity().
1 parent efd8da5e
......@@ -46,49 +46,52 @@ extern "C" {
#endif /*__P */
/* Constructor/destructor and possible types. */
extern int mailbox_create __P ((mailbox_t *, const char *));
extern void mailbox_destroy __P ((mailbox_t *));
extern int mailbox_create_default __P ((mailbox_t *, const char *));
extern int mailbox_create __P ((mailbox_t *, const char *));
extern void mailbox_destroy __P ((mailbox_t *));
extern int mailbox_create_default __P ((mailbox_t *, const char *));
extern int mailbox_open __P ((mailbox_t, int flag));
extern int mailbox_close __P ((mailbox_t));
extern int mailbox_set_folder __P ((mailbox_t, folder_t));
extern int mailbox_open __P ((mailbox_t, int flag));
extern int mailbox_close __P ((mailbox_t));
extern int mailbox_set_folder __P ((mailbox_t, folder_t));
extern int mailbox_uidvalidity __P ((mailbox_t, unsigned long *));
extern int mailbox_uidnext __P ((mailbox_t, size_t *));
/* Messages. */
extern int mailbox_get_message __P ((mailbox_t, size_t msgno, message_t *));
extern int mailbox_append_message __P ((mailbox_t, message_t));
extern int mailbox_messages_count __P ((mailbox_t, size_t *));
extern int mailbox_unseen_count __P ((mailbox_t, size_t *));
extern int mailbox_expunge __P ((mailbox_t));
extern int mailbox_get_message __P ((mailbox_t, size_t msgno, message_t *));
extern int mailbox_append_message __P ((mailbox_t, message_t));
extern int mailbox_messages_count __P ((mailbox_t, size_t *));
extern int mailbox_messages_recent __P ((mailbox_t, size_t *));
extern int mailbox_message_unseen __P ((mailbox_t, size_t *));
extern int mailbox_expunge __P ((mailbox_t));
/* Update and scanning. */
extern int mailbox_size __P ((mailbox_t, off_t *size));
extern int mailbox_is_updated __P ((mailbox_t));
extern int mailbox_scan __P ((mailbox_t, size_t no, size_t *count));
extern int mailbox_size __P ((mailbox_t, off_t *size));
extern int mailbox_is_updated __P ((mailbox_t));
extern int mailbox_scan __P ((mailbox_t, size_t no, size_t *count));
/* Mailbox Stream. */
extern int mailbox_set_stream __P ((mailbox_t, stream_t));
extern int mailbox_get_stream __P ((mailbox_t, stream_t *));
extern int mailbox_set_stream __P ((mailbox_t, stream_t));
extern int mailbox_get_stream __P ((mailbox_t, stream_t *));
/* Lock settings. */
extern int mailbox_get_locker __P ((mailbox_t, locker_t *));
extern int mailbox_set_locker __P ((mailbox_t, locker_t));
extern int mailbox_get_locker __P ((mailbox_t, locker_t *));
extern int mailbox_set_locker __P ((mailbox_t, locker_t));
/* Authentication. */
extern int mailbox_get_authority __P ((mailbox_t, authority_t *));
extern int mailbox_set_authority __P ((mailbox_t, authority_t));
extern int mailbox_get_ticket __P ((mailbox_t, ticket_t *));
extern int mailbox_set_ticket __P ((mailbox_t, ticket_t));
extern int mailbox_get_authority __P ((mailbox_t, authority_t *));
extern int mailbox_set_authority __P ((mailbox_t, authority_t));
extern int mailbox_get_ticket __P ((mailbox_t, ticket_t *));
extern int mailbox_set_ticket __P ((mailbox_t, ticket_t));
/* URL. */
extern int mailbox_get_url __P ((mailbox_t, url_t *));
extern int mailbox_get_url __P ((mailbox_t, url_t *));
/* For any debuging */
extern int mailbox_get_debug __P ((mailbox_t, debug_t *));
extern int mailbox_set_debug __P ((mailbox_t, debug_t));
extern int mailbox_get_debug __P ((mailbox_t, debug_t *));
extern int mailbox_set_debug __P ((mailbox_t, debug_t));
/* Events. */
extern int mailbox_get_observable __P ((mailbox_t, observable_t *));
extern int mailbox_get_observable __P ((mailbox_t, observable_t *));
#ifdef __cplusplus
}
......
......@@ -98,10 +98,14 @@ extern int message_set_get_part __P ((message_t, int (*_get_part)
__P ((message_t, size_t,
message_t *)), void *owner));
extern int message_get_uid __P ((message_t, char *, size_t, size_t *));
extern int message_set_uid __P ((message_t, int (*_get_uid)
extern int message_get_uidl __P ((message_t, char *, size_t, size_t *));
extern int message_set_uidl __P ((message_t, int (*_get_uidl)
__P ((message_t, char *, size_t,
size_t *)), void *owner));
extern int message_get_uid __P ((message_t, size_t *));
extern int message_set_uid __P ((message_t, int (*_get_uid)
__P ((message_t, size_t *)),
void *owner));
/* misc functions */
extern int message_create_attachment __P ((const char *content_type,
......