X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=9eca07896b353f409a39507e60b777fdc446c219;hb=46dce33abc82ea6ebd3be2e0887506af4185c739;hp=39fc47572b9053c6c98f93c6283e2f6a97cc4e13;hpb=9b568e73e1afc211306d18dac3d27df4a07a0fdd;p=notmuch diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 39fc4757..9eca0789 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -56,6 +56,7 @@ NOTMUCH_BEGIN_DECLS #ifdef DEBUG # define DEBUG_DATABASE_SANITY 1 +# define DEBUG_THREADING 1 # define DEBUG_QUERY 1 #endif @@ -476,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); @@ -483,6 +487,9 @@ _notmuch_message_list_add_message (notmuch_message_list_t *list, notmuch_messages_t * _notmuch_messages_create (notmuch_message_list_t *list); +bool +_notmuch_messages_has_next (notmuch_messages_t *messages); + /* query.cc */ bool @@ -539,6 +546,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); @@ -583,6 +596,9 @@ _notmuch_string_list_append (notmuch_string_list_t *list, void _notmuch_string_list_sort (notmuch_string_list_t *list); +const notmuch_string_list_t * +_notmuch_message_get_references(notmuch_message_t *message); + /* string-map.c */ typedef struct _notmuch_string_map notmuch_string_map_t; typedef struct _notmuch_string_map_iterator notmuch_string_map_iterator_t;