]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
Add _notmuch_message_get_in_reply_to.
[notmuch] / lib / notmuch-private.h
index 657816f17d665dafadf138f303943b58f34fcaaf..c4b66395f326a449c0e023a41cc24565f9668017 100644 (file)
@@ -173,7 +173,7 @@ _notmuch_message_create_for_message_id (const void *talloc_owner,
                                        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,
@@ -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 */