X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=8bb919358a08fcde36f918bed604700b51b89997;hp=657816f17d665dafadf138f303943b58f34fcaaf;hb=f970d8078cc29f876bebe02937307a5a8f2d394f;hpb=9b1c6c250b2413b987ffeccbf1cd69cb1e8b934d diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 657816f1..8bb91935 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -280,12 +280,29 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, /* messages.c */ -notmuch_messages_t * -_notmuch_messages_create (void *ctx); +typedef struct _notmuch_message_node { + notmuch_message_t *message; + struct _notmuch_message_node *next; +} notmuch_message_node_t; + +typedef struct _notmuch_message_list { + notmuch_message_node_t *head; + notmuch_message_node_t **tail; +} notmuch_message_list_t; + +notmuch_message_list_t * +_notmuch_message_list_create (const void *ctx); void -_notmuch_messages_add_message (notmuch_messages_t *messages, - notmuch_message_t *message); +_notmuch_message_list_append (notmuch_message_list_t *list, + notmuch_message_node_t *node); + +void +_notmuch_message_list_add_message (notmuch_message_list_t *list, + notmuch_message_t *message); + +notmuch_messages_t * +_notmuch_messages_create (notmuch_message_list_t *list); /* date.c */