summaryrefslogtreecommitdiff
path: root/notmuch-private.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-25 09:47:21 -0700
committerCarl Worth <cworth@cworth.org>2009-10-25 10:54:43 -0700
commit3b8e3ab666a54407f9596a53c66ba8ce623ac91d (patch)
tree683f2e40e8e901d9d6bded6d565dc299ec4d6b7d /notmuch-private.h
parent9f673f3cf866d114edc77080cd9f9e266d403c14 (diff)
add_message: Propagate error status from notmuch_message_create_for_message_id
What a great feeling to remove an XXX comment.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r--notmuch-private.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/notmuch-private.h b/notmuch-private.h
index 1302cd3..53ea75f 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -83,6 +83,7 @@ typedef enum {
typedef enum _notmuch_private_status {
/* First, copy all the public status values. */
NOTMUCH_PRIVATE_STATUS_SUCCESS = NOTMUCH_STATUS_SUCCESS,
+ NOTMUCH_PRIVATE_STATUS_OUT_OF_MEMORY = NOTMUCH_STATUS_OUT_OF_MEMORY,
NOTMUCH_PRIVATE_STATUS_XAPIAN_EXCEPTION = NOTMUCH_STATUS_XAPIAN_EXCEPTION,
NOTMUCH_PRIVATE_STATUS_FILE_NOT_EMAIL = NOTMUCH_STATUS_FILE_NOT_EMAIL,
NOTMUCH_PRIVATE_STATUS_NULL_POINTER = NOTMUCH_STATUS_NULL_POINTER,
@@ -100,12 +101,14 @@ typedef enum _notmuch_private_status {
notmuch_message_t *
_notmuch_message_create (const void *talloc_owner,
notmuch_database_t *notmuch,
- unsigned int doc_id);
+ unsigned int doc_id,
+ notmuch_private_status_t *status);
notmuch_message_t *
_notmuch_message_create_for_message_id (const void *talloc_owner,
notmuch_database_t *notmuch,
- const char *message_id);
+ const char *message_id,
+ notmuch_status_t *status);
/* Lookup a prefix value by name.
*