From d79b24b98d26e08f7529df6c404d523739175347 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 2 Aug 2012 21:14:50 -0400 Subject: show: Associate an sprinter with each format This associates an sprinter constructor with each show format and uses this to construct the appropriate sprinter. Currently nothing is done with this sprinter, but the following patches will weave it through the layers of notmuch show. --- notmuch-client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index f9307989..bbc0a114 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -69,6 +69,7 @@ typedef struct mime_node mime_node_t; struct notmuch_show_params; typedef struct notmuch_show_format { + struct sprinter *(*new_sprinter) (const void *ctx, FILE *stream); const char *message_set_start; notmuch_status_t (*part) (const void *ctx, struct mime_node *node, int indent, -- cgit v1.2.3