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,