X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=sprinter.h;h=6680d41958e209e0e30705cb153297809833810f;hp=77dc26f3fe67660614de95e453cf194b653a5e9a;hb=36522fca1cac6ca23c2c4c0280e3e20e96f7bfbb;hpb=41becc0c9dfabbd59a1c96bdedc99a785539a93b diff --git a/sprinter.h b/sprinter.h index 77dc26f3..6680d419 100644 --- a/sprinter.h +++ b/sprinter.h @@ -55,4 +55,14 @@ typedef struct sprinter { notmuch_bool_t is_text_printer; } sprinter_t; + +/* Create a new unstructured printer that emits the default text format + * for "notmuch search". */ +struct sprinter * +sprinter_text_create (const void *ctx, FILE *stream); + +/* Create a new structure printer that emits JSON. */ +struct sprinter * +sprinter_json_create (const void *ctx, FILE *stream); + #endif // NOTMUCH_SPRINTER_H