#include <babeltrace/common-internal.h>
#include "babeltrace-cfg.h"
#include "babeltrace-cfg-cli-args-connect.h"
#include <babeltrace/common-internal.h>
#include "babeltrace-cfg.h"
#include "babeltrace-cfg-cli-args-connect.h"
struct bt_config_component *comp = g_ptr_array_index(comps, i);
if (strcmp(name, comp->instance_name->str) == 0) {
struct bt_config_component *comp = g_ptr_array_index(comps, i);
if (strcmp(name, comp->instance_name->str) == 0) {
struct bt_config_connection *connection =
g_ptr_array_index(cfg->cmd_data.run.connections, i);
struct bt_config_connection *connection =
g_ptr_array_index(cfg->cmd_data.run.connections, i);
ret = validate_all_components_connected_in_array(
cfg->cmd_data.run.sources,
ret = validate_all_components_connected_in_array(
cfg->cmd_data.run.sources,
ret = validate_all_components_connected_in_array(
cfg->cmd_data.run.filters,
ret = validate_all_components_connected_in_array(
cfg->cmd_data.run.filters,
connection->downstream_comp_name->str,
connection->downstream_port_glob->str);
connection->downstream_comp_name->str,
connection->downstream_port_glob->str);
- if (bt_value_map_has_entry(bt_value_borrow_from_private(
- flat_connection_names),
- flat_connection_name->str)) {
+ if (bt_value_map_has_entry(flat_connection_names,
+ flat_connection_name->str)) {
snprintf(error_buf, error_buf_size,
"Duplicate connection:\n %s\n",
connection->arg->str);
snprintf(error_buf, error_buf_size,
"Duplicate connection:\n %s\n",
connection->arg->str);
if (flat_connection_name) {
g_string_free(flat_connection_name, TRUE);
if (flat_connection_name) {
g_string_free(flat_connection_name, TRUE);
cfg_connection = cfg_connection_from_arg(arg);
if (!cfg_connection) {
snprintf(error_buf, error_buf_size, "Cannot parse --connect option's argument:\n %s\n",
cfg_connection = cfg_connection_from_arg(arg);
if (!cfg_connection) {
snprintf(error_buf, error_buf_size, "Cannot parse --connect option's argument:\n %s\n",