diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-01-23 18:33:10 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-01-25 07:21:40 -0400 |
commit | 7430a42e23ee775818f84ed75f417302da694152 (patch) | |
tree | 91bb8d5d577f44d160efd30efbb25f6099b5a38b /notmuch-client.h | |
parent | a66e65d604c5e658daa97acbb9d0487788863521 (diff) |
show: Introduce mime_node formatter callback
This callback is the gateway to the new mime_node_t-based formatters.
This maintains backwards compatibility so the formatters can be
transitioned one at a time. Once all formatters are converted, the
formatter structure can be reduced to only message_set_{start,sep,end}
and part, most of show_message can be deleted, and all of
show-message.c can be deleted.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 70f23362..e0eb594a 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -62,8 +62,14 @@ #define STRINGIFY(s) STRINGIFY_(s) #define STRINGIFY_(s) #s +struct mime_node; +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); const char *message_start; void (*message) (const void *ctx, notmuch_message_t *message, |