]> sigrok.org Git - sigrok-cli.git/blobdiff - options.c
decode: add support for Google Trace Event output (JSON)
[sigrok-cli.git] / options.c
index 5a6f9487769f640bd4e04a71c61832bcf6f0191e..ebd620d597b37417dcd65338da4b7202b274dc16 100644 (file)
--- a/options.c
+++ b/options.c
@@ -41,6 +41,7 @@ gchar *opt_pd_annotations = NULL;
 gchar *opt_pd_meta = NULL;
 gchar *opt_pd_binary = NULL;
 gboolean opt_pd_samplenum = FALSE;
+gboolean opt_pd_jsontrace = FALSE;
 #endif
 gchar *opt_input_format = NULL;
 gchar *opt_output_format = NULL;
@@ -142,6 +143,8 @@ static const GOptionEntry optargs[] = {
                        "Protocol decoder binary output to show", NULL},
        {"protocol-decoder-samplenum", 0, 0, G_OPTION_ARG_NONE, &opt_pd_samplenum,
                        "Show sample numbers in decoder output", NULL},
+       {"protocol-decoder-jsontrace", 0, 0, G_OPTION_ARG_NONE, &opt_pd_jsontrace,
+                       "Output in Google Trace Event format (JSON)", NULL},
 #endif
        {"scan", 0, 0, G_OPTION_ARG_NONE, &opt_scan_devs,
                        "Scan for devices", NULL},