diff options
| author | David Bremner <david@tethera.net> | 2017-06-04 09:32:30 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-08-01 21:17:47 -0400 |
| commit | 8a8e2b11c208050aa1d719ec0933f58d51628fdd (patch) | |
| tree | 886ee56fb742482b88fae41fe0949e906c7ca15f /lib/string-list.c | |
| parent | 411675a6ce78988157c4a078f504b3b7805e54c6 (diff) | |
lib: add notmuch_message_count_files
This operation is relatively inexpensive, as the needed metadata is
already computed by our lazy metadata fetching. The goal is to support
better UI for messages with multipile files.
Diffstat (limited to 'lib/string-list.c')
| -rw-r--r-- | lib/string-list.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/string-list.c b/lib/string-list.c index 43ebe499..9c3ae7ef 100644 --- a/lib/string-list.c +++ b/lib/string-list.c @@ -42,6 +42,12 @@ _notmuch_string_list_create (const void *ctx) return list; } +int +_notmuch_string_list_length (notmuch_string_list_t *list) +{ + return list->length; +} + void _notmuch_string_list_append (notmuch_string_list_t *list, const char *string) |
