if (!component ||
component->class->type != BT_COMPONENT_CLASS_TYPE_SINK) {
- ret = -1;
+ ret = (int64_t) -1;
goto end;
}
return ret;
}
-struct bt_port *bt_component_sink_get_input_port(
+struct bt_port *bt_component_sink_get_input_port_by_name(
struct bt_component *component, const char *name)
{
struct bt_port *port = NULL;
goto end;
}
- port = bt_component_get_input_port(component, name);
+ port = bt_component_get_input_port_by_name(component, name);
end:
return port;
}
-struct bt_port *bt_component_sink_get_input_port_at_index(
- struct bt_component *component, int index)
+struct bt_port *bt_component_sink_get_input_port_by_index(
+ struct bt_component *component, uint64_t index)
{
struct bt_port *port = NULL;
goto end;
}
- port = bt_component_get_input_port_at_index(component, index);
+ port = bt_component_get_input_port_by_index(component, index);
end:
return port;
}
struct bt_port *bt_component_sink_get_default_input_port(
struct bt_component *component)
{
- return bt_component_sink_get_input_port(component,
+ return bt_component_sink_get_input_port_by_name(component,
DEFAULT_INPUT_PORT_NAME);
}
struct bt_private_port *
-bt_private_component_sink_get_input_private_port_at_index(
- struct bt_private_component *private_component, int index)
+bt_private_component_sink_get_input_private_port_by_index(
+ struct bt_private_component *private_component, uint64_t index)
{
return bt_private_port_from_port(
- bt_component_sink_get_input_port_at_index(
+ bt_component_sink_get_input_port_by_index(
bt_component_from_private(private_component), index));
}