-extern const bt_component_class_sink *
-bt_component_sink_borrow_class_const(
- const bt_component_sink *component);
-
-extern uint64_t bt_component_sink_get_input_port_count(
- const bt_component_sink *component);
-
-extern const bt_port_input *
-bt_component_sink_borrow_input_port_by_name_const(
- const bt_component_sink *component, const char *name);
-
-extern const bt_port_input *
-bt_component_sink_borrow_input_port_by_index_const(
- const bt_component_sink *component, uint64_t index);
-
-extern void bt_component_sink_get_ref(
- const bt_component_sink *component_sink);
-
-extern void bt_component_sink_put_ref(
- const bt_component_sink *component_sink);
-
-/* From self-component.h */
-
-typedef enum bt_self_component_status {
- BT_SELF_COMPONENT_STATUS_OK = 0,
- BT_SELF_COMPONENT_STATUS_END = 1,
- BT_SELF_COMPONENT_STATUS_AGAIN = 11,
- BT_SELF_COMPONENT_STATUS_ERROR = -1,
- BT_SELF_COMPONENT_STATUS_NOMEM = -12,
-} bt_self_component_status;
-
-const bt_component *bt_self_component_as_component(
- bt_self_component *self_component);
-
-extern void *bt_self_component_get_data(
- const bt_self_component *self_component);
-
-extern void bt_self_component_set_data(
- bt_self_component *self_component, void *data);
-
-/* From self-component-source.h */
-
-bt_self_component *bt_self_component_source_as_self_component(
- bt_self_component_source *self_comp_source);
-
-const bt_component_source *
-bt_self_component_source_as_component_source(
- bt_self_component_source *self_comp_source);
-
-extern bt_self_component_port_output *
-bt_self_component_source_borrow_output_port_by_name(
- bt_self_component_source *self_component,
- const char *name);
-
-extern bt_self_component_port_output *
-bt_self_component_source_borrow_output_port_by_index(
- bt_self_component_source *self_component,
- uint64_t index);
-
-extern bt_self_component_status
-bt_self_component_source_add_output_port(
- bt_self_component_source *self_component,
- const char *name, void *PY_SELF_PORT_USER_DATA,
- bt_self_component_port_output **OUT);
-
-/* From self-component-filter.h */
-
-bt_self_component *bt_self_component_filter_as_self_component(
- bt_self_component_filter *self_comp_filter);
-
-const bt_component_filter *
-bt_self_component_filter_as_component_filter(
- bt_self_component_filter *self_comp_filter);
-
-extern bt_self_component_port_output *
-bt_self_component_filter_borrow_output_port_by_name(
- bt_self_component_filter *self_component,
- const char *name);
-
-extern bt_self_component_port_output *
-bt_self_component_filter_borrow_output_port_by_index(
- bt_self_component_filter *self_component,
- uint64_t index);
-
-extern bt_self_component_status
-bt_self_component_filter_add_output_port(
- bt_self_component_filter *self_component,
- const char *name, void *PY_SELF_PORT_USER_DATA,
- bt_self_component_port_output **OUT);
-
-extern bt_self_component_port_input *
-bt_self_component_filter_borrow_input_port_by_name(
- bt_self_component_filter *self_component,
- const char *name);
-
-extern bt_self_component_port_input *
-bt_self_component_filter_borrow_input_port_by_index(
- bt_self_component_filter *self_component,
- uint64_t index);
-
-extern bt_self_component_status
-bt_self_component_filter_add_input_port(
- bt_self_component_filter *self_component,
- const char *name, void *PY_SELF_PORT_USER_DATA,
- bt_self_component_port_input **OUT);
-
-/* From self-component-sink.h */
-
-bt_self_component *bt_self_component_sink_as_self_component(
- bt_self_component_sink *self_comp_sink);
-
-const bt_component_sink *
-bt_self_component_sink_as_component_sink(
- bt_self_component_sink *self_comp_sink);
-
-extern bt_self_component_port_input *
-bt_self_component_sink_borrow_input_port_by_name(
- bt_self_component_sink *self_component,
- const char *name);
-
-extern bt_self_component_port_input *
-bt_self_component_sink_borrow_input_port_by_index(
- bt_self_component_sink *self_component, uint64_t index);
-
-extern bt_self_component_status
-bt_self_component_sink_add_input_port(
- bt_self_component_sink *self_component,
- const char *name, void *PY_SELF_PORT_USER_DATA,
- bt_self_component_port_input **OUT);