-
-enum bt_component_status bt_component_source_remove_output_port(
- struct bt_component *component, const char *name)
-{
- enum bt_component_status status;
- struct bt_component_source *source;
-
- if (!component ||
- component->class->type != BT_COMPONENT_CLASS_TYPE_SOURCE) {
- status = BT_COMPONENT_STATUS_INVALID;
- goto end;
- }
-
- source = container_of(component, struct bt_component_source, parent);
- status = bt_component_remove_port(component, source->output_ports,
- name);
-end:
- return status;
-}