Add the verbose parameter to the legacy text options
[babeltrace.git] / plugins / text / text.c
index 163f3c2ced15c68f20a33f11eb602998cfe7fda1..44887b6fe11498470cac076f4d4deb9661a70318 100644 (file)
@@ -54,6 +54,7 @@ const char *plugin_options[] = {
        "clock-seconds",
        "clock-date",
        "clock-gmt",
+       "verbose",
        "name-default",         /* show/hide */
        "name-payload",
        "name-context",
@@ -417,6 +418,13 @@ enum bt_component_status apply_params(struct text_component *text,
        }
        text->options.clock_gmt = value;
 
+       value = false;          /* Default. */
+       ret = apply_one_bool("verbose", params, &value, NULL);
+       if (ret != BT_COMPONENT_STATUS_OK) {
+               goto end;
+       }
+       text->options.verbose = value;
+
        /* Names. */
        ret = apply_one_string("name-default", params, &str);
        if (ret != BT_COMPONENT_STATUS_OK) {
This page took 0.022906 seconds and 4 git commands to generate.