X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=260cc22d370088bf74ca3cee81d5b88dc19dbb4b;hb=53f8cc565126db4a003dbfc02850d2bf3b260636;hp=bbeec559f0f8fdd95018d57c21f2330f6fcebd1d;hpb=637f99d8f3f45867d0a856503f9f302333824c07;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index bbeec559..260cc22d 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -139,7 +139,7 @@ notmuch_database_create (const char *path); typedef enum { NOTMUCH_DATABASE_MODE_READ_ONLY = 0, - NOTMUCH_DATABASE_MODE_READ_Write + NOTMUCH_DATABASE_MODE_READ_WRITE } notmuch_database_mode_t; /* XXX: I think I'd like this to take an extra argument of @@ -468,6 +468,14 @@ notmuch_threads_advance (notmuch_threads_t *threads); void notmuch_threads_destroy (notmuch_threads_t *threads); +/* Return an estimate of the number of messages matching a search + * + * This function performs a search and returns Xapian's best + * guess as to number of matching messages. + */ +unsigned +notmuch_query_count_messages (notmuch_query_t *query); + /* Get the thread ID of 'thread'. * * The returned string belongs to 'thread' and as such, should not be