1 #include "notmuch-client.h"
4 print_status_query (const char *loc,
5 const notmuch_query_t *query,
6 notmuch_status_t status)
10 notmuch_database_t *notmuch;
12 fprintf (stderr, "%s: %s\n", loc,
13 notmuch_status_to_string (status));
15 notmuch = notmuch_query_get_database (query);
16 msg = notmuch_database_status_string (notmuch);
24 print_status_database (const char *loc,
25 const notmuch_database_t *notmuch,
26 notmuch_status_t status)
31 fprintf (stderr, "%s: %s\n", loc,
32 notmuch_status_to_string (status));
33 msg = notmuch_database_status_string (notmuch);
41 status_to_exit (notmuch_status_t status)
44 case NOTMUCH_STATUS_SUCCESS:
46 case NOTMUCH_STATUS_OUT_OF_MEMORY:
47 case NOTMUCH_STATUS_XAPIAN_EXCEPTION:
48 case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:
49 case NOTMUCH_STATUS_FILE_ERROR: