X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-private.h;h=ddc59b4ce5c056fbaf1408be862f882f9af47156;hp=be1fb63fe9a1227130501ffc62276b7c8ff3018a;hb=8e96a87fff4d34a154d1456e9ad47e7b0c322d54;hpb=a360670c03475b1489ea5e2327cc3037cc8dff0b diff --git a/notmuch-private.h b/notmuch-private.h index be1fb63f..ddc59b4c 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -22,7 +22,7 @@ #define NOTMUCH_PRIVATE_H #ifndef _GNU_SOURCE -#define _GNU_SOURCE /* For getline */ +#define _GNU_SOURCE /* For getline and asprintf */ #endif #include @@ -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