diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-03-06 18:48:39 +0000 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-18 09:14:21 -0300 |
commit | 6a4df1b796ea82545fa0861d341aa6769f72ac02 (patch) | |
tree | cd90a5caeb06f862869b5115fbacc7bc77ced69b /notmuch-client.h | |
parent | 046ab77b1045596ab225296987401fe95eb2fe13 (diff) |
show: Allow formatters to return errors
Formatter errors are propagated to the exit status of notmuch show.
This isn't used by the JSON or text formatters, but it will be useful
for the raw format, which is pickier.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index f4a62ccb..a220fe46 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -67,9 +67,9 @@ struct notmuch_show_params; typedef struct notmuch_show_format { const char *message_set_start; - void (*part) (const void *ctx, - struct mime_node *node, int indent, - const struct notmuch_show_params *params); + notmuch_status_t (*part) (const void *ctx, + struct mime_node *node, int indent, + const struct notmuch_show_params *params); const char *message_start; void (*message) (const void *ctx, notmuch_message_t *message, |