From 64122c31fa4a4d652fa61d639d250c99f534e17f Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Mon, 17 Dec 2012 00:05:10 +0200 Subject: sprinter: add text0 formatter for null character separated text Same as the text formatter, but with each field separated by a null character rather than a newline character. --- sprinter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sprinter.h') diff --git a/sprinter.h b/sprinter.h index f43a8443..f859672f 100644 --- a/sprinter.h +++ b/sprinter.h @@ -67,6 +67,12 @@ typedef struct sprinter { struct sprinter * sprinter_text_create (const void *ctx, FILE *stream); +/* Create a new unstructured printer that emits the text format for + * "notmuch search", with each field separated by a null character + * instead of the newline character. */ +struct sprinter * +sprinter_text0_create (const void *ctx, FILE *stream); + /* Create a new structure printer that emits JSON. */ struct sprinter * sprinter_json_create (const void *ctx, FILE *stream); -- cgit v1.2.3