X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=dad7e22e52689079ac53658fb327a489b333eff5;hp=190d30385ba3893dcf6d38bd57f938ca81741d6d;hb=0da0131096c83311b91b00bd72f05fb1902c595d;hpb=ec6d3506db0b614ff754293cfb83fe9e93dc66c8 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 190d3038..dad7e22e 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -150,9 +150,10 @@ _find_prefix (const char *name); /* thread.cc */ notmuch_thread_t * -_notmuch_thread_create (const void *ctx, +_notmuch_thread_create (void *ctx, notmuch_database_t *notmuch, - const char *thread_id); + const char *thread_id, + const char *query_string); /* message.cc */ @@ -163,13 +164,12 @@ _notmuch_message_create (const void *talloc_owner, notmuch_private_status_t *status); notmuch_message_t * -_notmuch_message_create_for_message_id (const void *talloc_owner, - notmuch_database_t *notmuch, +_notmuch_message_create_for_message_id (notmuch_database_t *notmuch, const char *message_id, notmuch_private_status_t *status); const char * -_notmuch_message_get_subject (notmuch_message_t *message); +_notmuch_message_get_in_reply_to (notmuch_message_t *message); notmuch_private_status_t _notmuch_message_add_term (notmuch_message_t *message, @@ -204,6 +204,9 @@ _notmuch_message_set_date (notmuch_message_t *message, void _notmuch_message_sync (notmuch_message_t *message); +void +_notmuch_message_close (notmuch_message_t *message); + /* index.cc */ notmuch_status_t @@ -274,6 +277,38 @@ 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); + +/* message.cc */ + +void +_notmuch_message_add_reply (notmuch_message_t *message, + notmuch_message_node_t *reply); + /* date.c */ /* Parse an RFC 8222 date string to a time_t value.