]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
lib/messages: Add new notmuch_message_list_t to internal interface.
[notmuch] / lib / notmuch-private.h
index c286aa4bcdce2d8821b96d4294e141312013da74..8bb919358a08fcde36f918bed604700b51b89997 100644 (file)
@@ -147,6 +147,9 @@ 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 *
@@ -275,6 +278,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.