X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=a61cd0207216b656724e0e1188b21cbb69e68d09;hb=717279fbcf7e057957c7c6726cd4930393cd5fdf;hp=89ed7ad88b7eb91ead3d6cefe518f29b410cdfd2;hpb=f379aa52845f5594aa6cc2e7cf131d5f57202bbf;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 89ed7ad8..a61cd020 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -137,14 +137,14 @@ typedef struct _notmuch_tags notmuch_tags_t; notmuch_database_t * notmuch_database_create (const char *path); -/* XXX: I think I'd like this to take an extra argument of - * notmuch_status_t* for returning a status value on failure. */ - typedef enum { - NOTMUCH_DATABASE_MODE_READONLY = 0, - NOTMUCH_DATABASE_MODE_WRITABLE + NOTMUCH_DATABASE_MODE_READ_ONLY = 0, + NOTMUCH_DATABASE_MODE_READ_WRITE } notmuch_database_mode_t; +/* XXX: I think I'd like this to take an extra argument of + * notmuch_status_t* for returning a status value on failure. */ + /* Open an existing notmuch database located at 'path'. * * The database should have been created at some time in the past,