-/*
- * Validate the "paths" parameter passed to this component. It must be
- * present, and it must be an array of strings.
- */
-
-static
-bool validate_inputs_parameter(struct ctf_fs_component *ctf_fs,
- const bt_value *inputs, bt_self_component *self_comp,
- bt_self_component_class *self_comp_class)
-{
- bool ret;
- bt_value_type type;
- uint64_t i;
- bt_logging_level log_level = ctf_fs->log_level;
-
- if (!inputs) {
- BT_COMP_OR_COMP_CLASS_LOGE_APPEND_CAUSE(self_comp,
- self_comp_class, "missing \"inputs\" parameter");
- goto error;
- }
-
- type = bt_value_get_type(inputs);
- if (type != BT_VALUE_TYPE_ARRAY) {
- BT_COMP_OR_COMP_CLASS_LOGE_APPEND_CAUSE(self_comp,
- self_comp_class, "`inputs` parameter: expecting array value: type=%s",
- bt_common_value_type_string(type));
- goto error;
- }
-
- if (bt_value_array_is_empty(inputs)) {
- BT_COMP_OR_COMP_CLASS_LOGE_APPEND_CAUSE(self_comp,
- self_comp_class, "`inputs` parameter must not be empty");
- goto error;
- }
-
- for (i = 0; i < bt_value_array_get_length(inputs); i++) {
- const bt_value *elem;