X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnotmuch.h;h=9b5046b423c43963882d7af3c3cfb043786033e9;hb=7e2d0ef10588b37922a6b48ca18005ce51bc0669;hp=c671d8229b39ba4700e72d9160b7382e97653382;hpb=84d3b15d251623cbb66e5eca7ddb8d61aa596d33;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index c671d822..9b5046b4 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -59,6 +59,8 @@ NOTMUCH_BEGIN_DECLS #define LIBNOTMUCH_MINOR_VERSION 2 #define LIBNOTMUCH_MICRO_VERSION 0 +#define NOTMUCH_DEPRECATED(major,minor) \ + __attribute__ ((deprecated ("function deprecated as of libnotmuch " #major "." #minor))) #endif /* __DOXYGEN__ */ /** @@ -163,6 +165,11 @@ typedef enum _notmuch_status { * The operation requires a database upgrade. */ NOTMUCH_STATUS_UPGRADE_REQUIRED, + /** + * There is a problem with the proposed path, e.g. a relative path + * passed to a function expecting an absolute path. + */ + NOTMUCH_STATUS_PATH_ERROR, /** * Not an actual status value. Just a way to find out how many * valid status values there are. @@ -301,6 +308,13 @@ notmuch_database_open_verbose (const char *path, notmuch_database_t **database, char **error_message); +/** + * Retrieve last status string for given database. + * + */ +const char * +notmuch_database_status_string (notmuch_database_t *notmuch); + /** * Commit changes and close the given notmuch database. *