]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
lib: Move notmuch_messages_t code from query.cc to new messages.c
[notmuch] / lib / notmuch-private.h
index 190d30385ba3893dcf6d38bd57f938ca81741d6d..bb1f235e0024d7f4ef15daededfc9ecc26031d2e 100644 (file)
@@ -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 */
 
@@ -274,6 +275,15 @@ const char *
 notmuch_message_file_get_header (notmuch_message_file_t *message,
                                 const char *header);
 
+/* messages.c */
+
+notmuch_messages_t *
+_notmuch_messages_create (void *ctx);
+
+void
+_notmuch_messages_add_message (notmuch_messages_t *messages,
+                              notmuch_message_t *message);
+
 /* date.c */
 
 /* Parse an RFC 8222 date string to a time_t value.