X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-private.h;h=98ad4e26bfa673d578d15f2caef1948ef0f179fd;hb=94f01d9de914b609e1f02385092b82fd61ca73b5;hp=be1fb63fe9a1227130501ffc62276b7c8ff3018a;hpb=a360670c03475b1489ea5e2327cc3037cc8dff0b;p=notmuch diff --git a/notmuch-private.h b/notmuch-private.h index be1fb63f..98ad4e26 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -72,6 +72,8 @@ _internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2); _internal_error (format " (%s).\n", \ ##__VA_ARGS__, __location__) +#define unused(x) x __attribute__ ((unused)) + /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of * unlikely. The talloc source code comes to us via the GNU LGPL v. 3. */ @@ -135,6 +137,16 @@ typedef enum _notmuch_private_status { : \ (notmuch_status_t) private_status) +/* thread.cc */ + +notmuch_thread_t * +_notmuch_thread_create (const void *talloc_owner, + notmuch_database_t *notmuch, + const char *thread_id); + +void +_notmuch_thread_add_tag (notmuch_thread_t *thread, const char *tag); + /* message.cc */ notmuch_message_t * @@ -265,6 +277,17 @@ notmuch_sha1_of_string (const char *str); char * notmuch_sha1_of_file (const char *filename); +/* tags.c */ + +notmuch_tags_t * +_notmuch_tags_create (void *ctx); + +void +_notmuch_tags_add_tag (notmuch_tags_t *tags, const char *tag); + +void +_notmuch_tags_prepare_iterator (notmuch_tags_t *tags); + NOTMUCH_END_DECLS #endif