]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
lib/thread: rewrite _parent_or_toplevel to use depths
[notmuch] / lib / notmuch-private.h
index 02cc0e09da163251b40547a6e2aea182877f9231..94fc54d76913a1f20e6d229f2c0d6d0ed2fa300a 100644 (file)
@@ -477,6 +477,9 @@ struct _notmuch_messages {
 notmuch_message_list_t *
 _notmuch_message_list_create (const void *ctx);
 
+bool
+_notmuch_message_list_empty (notmuch_message_list_t *list);
+
 void
 _notmuch_message_list_add_message (notmuch_message_list_t *list,
                                   notmuch_message_t *message);
@@ -540,6 +543,12 @@ _notmuch_message_remove_unprefixed_terms (notmuch_message_t *message);
 const char *
 _notmuch_message_get_thread_id_only(notmuch_message_t *message);
 
+size_t _notmuch_message_get_thread_depth (notmuch_message_t *message);
+
+void
+_notmuch_message_label_depths (notmuch_message_t *message,
+                              size_t depth);
+
 notmuch_message_list_t *
 _notmuch_message_sort_subtrees (void *ctx, notmuch_message_list_t *list);