aboutsummaryrefslogtreecommitdiff
path: root/sprinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'sprinter.h')
-rw-r--r--sprinter.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sprinter.h b/sprinter.h
index 77dc26f..6680d41 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