Make some bt_param_validation_map_value_entry_descr variables static
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 19 Nov 2019 18:51:10 +0000 (13:51 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 19:03:43 +0000 (14:03 -0500)
These variables are not used outside their respective files.

Change-Id: I281df2f935ebd4326a9a655cd8b84fbcb437cfc3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2412
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/lttng-utils/debug-info/debug-info.c
src/plugins/text/dmesg/dmesg.c
src/plugins/text/pretty/pretty.c
src/plugins/utils/counter/counter.c
src/plugins/utils/dummy/dummy.c
src/plugins/utils/muxer/muxer.c
src/plugins/utils/trimmer/trimmer.c

index 374ec222869a7a3efd650fb334279665f0d0bb88..c98cf604175bd31fdce288f170ee614460ec24cd 100644 (file)
@@ -1704,6 +1704,7 @@ const bt_message *handle_message(struct debug_info_msg_iter *debug_it,
        return out_message;
 }
 
+static
 struct bt_param_validation_map_value_entry_descr debug_info_params[] = {
        { "debug-info-field-name", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } },
        { "debug-info-dir", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } },
index 0d755e73339055525021b6fe741228dc773e4dc7..da21f69eaf964a1248ec98bb76cd0d4401f7c38c 100644 (file)
@@ -201,6 +201,7 @@ end:
        return ret;
 }
 
+static
 struct bt_param_validation_map_value_entry_descr dmesg_params[] = {
        { "no-extract-timestamp", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
        { "path", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } },
index 6cc8607e19f79244caa6d93870ff8d1cd59290f1..b05622bda44880572121c26c09d3e8851c24d052 100644 (file)
@@ -296,6 +296,7 @@ end:
 static const char *color_choices[] = { "never", "auto", "always", NULL };
 static const char *show_hide_choices[] = { "show", "hide", NULL };
 
+static
 struct bt_param_validation_map_value_entry_descr pretty_params[] = {
        { "color", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { BT_VALUE_TYPE_STRING, .string = {
                .choices = color_choices,
index cff0d577d2ccdda2f3e1682b428716d194042cd3..9fe62a349096b603732eccf40fbc53161ca14b40 100644 (file)
@@ -138,6 +138,7 @@ void counter_finalize(bt_self_component_sink *comp)
        g_free(counter);
 }
 
+static
 struct bt_param_validation_map_value_entry_descr counter_params[] = {
        { "step", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_UNSIGNED_INTEGER } },
        { "hide-zero", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
index 6f772561c5674660621293ef9acb3598b56e001c..224b0696687a7bc77077f5b79e2674a510b28a80 100644 (file)
@@ -54,6 +54,7 @@ void dummy_finalize(bt_self_component_sink *comp)
        destroy_private_dummy_data(dummy);
 }
 
+static
 struct bt_param_validation_map_value_entry_descr dummy_params[] = {
        BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_END
 };
index 638bc0c947c5fbdf9a6e4ffa48e3f8ae5693ea3d..f4af51c8df083765e2242c1f80d39810fb355733 100644 (file)
@@ -255,6 +255,7 @@ void destroy_muxer_comp(struct muxer_comp *muxer_comp)
        g_free(muxer_comp);
 }
 
+static
 struct bt_param_validation_map_value_entry_descr muxer_params[] = {
        BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_END
 };
index a3016212219660fe341a7a7722232f8a604c06be..75104b31df9dc8e3b6f246c4b8ab9c31229e743b 100644 (file)
@@ -527,6 +527,7 @@ enum bt_param_validation_status validate_bound_type(
        return status;
 }
 
+static
 struct bt_param_validation_map_value_entry_descr trimmer_params[] = {
        { "gmt", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
        { "begin", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .validation_func = validate_bound_type } },
This page took 0.028123 seconds and 4 git commands to generate.