]> git.notmuchmail.org Git - notmuch/blobdiff - sprinter.h
Add structured output formatter for JSON and plain text (but don't use them yet).
[notmuch] / sprinter.h
index 77dc26f3fe67660614de95e453cf194b653a5e9a..6680d41958e209e0e30705cb153297809833810f 100644 (file)
@@ -55,4 +55,14 @@ typedef struct sprinter {
     notmuch_bool_t is_text_printer;
 } sprinter_t;
 
     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
 #endif // NOTMUCH_SPRINTER_H