X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=74edf242cc1d47f8d6c68f4653c2f33a0c8b3d20;hp=92b463432671f8b442a858336306413db371afe7;hb=b97756926f3bb9f940e8d6a9724c02a29f40f128;hpb=146549321044615d9aef2b30cedccda9c49f3f38 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 92b46343..74edf242 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -147,16 +147,16 @@ typedef enum _notmuch_private_status { const char * _find_prefix (const char *name); +char * +_parse_message_id (void *ctx, const char *message_id, const char **next); + /* thread.cc */ notmuch_thread_t * -_notmuch_thread_create (const void *talloc_owner, +_notmuch_thread_create (void *ctx, notmuch_database_t *notmuch, - const char *thread_id); - -void -_notmuch_thread_add_message (notmuch_thread_t *thread, - notmuch_message_t *message); + const char *thread_id, + const char *query_string); /* message.cc */ @@ -172,9 +172,6 @@ _notmuch_message_create_for_message_id (const void *talloc_owner, const char *message_id, notmuch_private_status_t *status); -const char * -_notmuch_message_get_subject (notmuch_message_t *message); - notmuch_private_status_t _notmuch_message_add_term (notmuch_message_t *message, const char *prefix_name, @@ -278,6 +275,32 @@ const char * notmuch_message_file_get_header (notmuch_message_file_t *message, const char *header); +/* messages.c */ + +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_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 */ /* Parse an RFC 8222 date string to a time_t value.