aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-06-04 09:32:31 -0300
committerDavid Bremner <david@tethera.net>2017-08-01 21:17:47 -0400
commit50340bcb78586dc63b5e0914563665b30e8f88d0 (patch)
tree57a8d8d274996d38bdb6d9a5224e03103d2af197 /lib/notmuch.h
parent8a8e2b11c208050aa1d719ec0933f58d51628fdd (diff)
lib: add notmuch_thread_get_total_files
This is relatively inexpensive in terms of run time and implementation cost as we are already traversing the list of messages in a thread.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index f5018497..4c03a893 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -1097,6 +1097,18 @@ int
notmuch_thread_get_total_messages (notmuch_thread_t *thread);
/**
+ * Get the total number of files in 'thread'.
+ *
+ * This sums notmuch_message_count_files over all messages in the
+ * thread
+ * @returns Non-negative integer
+ * @since libnotmuch 5.0 (notmuch 0.25)
+ */
+
+int
+notmuch_thread_get_total_files (notmuch_thread_t *thread);
+
+/**
* Get a notmuch_messages_t iterator for the top-level messages in
* 'thread' in oldest-first order.
*