]> git.cworth.org Git - notmuch/commitdiff
notmuch_database_create: Document idea to (optionally) return a status
authorCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 05:14:31 +0000 (22:14 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 05:14:31 +0000 (22:14 -0700)
The current problem is that when this function fails the caller
doesn't get any information about what the particular failure
was, (something in the filesystem? or in Xapian?). We should fix
that.

notmuch.h

index e93caaa6e39cf078a37af326ffea3d0186a00f60..559ac3ab5b4ca90d260f21e8f7157b678ff74592 100644 (file)
--- a/notmuch.h
+++ b/notmuch.h
@@ -144,6 +144,9 @@ notmuch_database_default_path (void);
 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. */
+
 /* Open a an existing notmuch database located at 'path'.
  *
  * The database should have been created at some time in the past,