7#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H
8#define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
16#include <babeltrace2/types.h>
146 return __BT_UPCAST_CONST(
bt_port, self_component_port);
169 return __BT_UPCAST_CONST(
bt_port_input, self_component_port);
struct bt_port_output bt_port_output
Output port.
Definition types.h:67
struct bt_port bt_port
Port.
Definition types.h:65
struct bt_port_input bt_port_input
Input port.
Definition types.h:66
void * bt_self_component_port_get_data(const bt_self_component_port *self_component_port)
Returns the user data of the port self_component_port.
struct bt_self_component_port_output bt_self_component_port_output
Self component output port.
Definition types.h:81
static const bt_port_output * bt_self_component_port_output_as_port_output(bt_self_component_port_output *self_component_port)
Upcasts the self component output port self_component_port to the public bt_port_output type.
Definition self-component-port.h:188
struct bt_self_component_port bt_self_component_port
Self component component.
Definition types.h:78
bt_self_component * bt_self_component_port_borrow_component(bt_self_component_port *self_component_port)
Borrows the component of the port self_component_port.
static bt_self_component_port * bt_self_component_port_output_as_self_component_port(bt_self_component_port_output *self_component_port)
Upcasts the self output port self_component_port to the common bt_self_component_port type.
Definition self-component-port.h:245
static const bt_port_input * bt_self_component_port_input_as_port_input(const bt_self_component_port_input *self_component_port)
Upcasts the self component input port self_component_port to the public bt_port_input type.
Definition self-component-port.h:165
static bt_self_component_port * bt_self_component_port_input_as_self_component_port(bt_self_component_port_input *self_component_port)
Upcasts the self input port self_component_port to the common bt_self_component_port type.
Definition self-component-port.h:220
struct bt_self_component_port_input bt_self_component_port_input
Self component input port.
Definition types.h:79
static const bt_port * bt_self_component_port_as_port(bt_self_component_port *self_component_port)
Upcasts the self component port self_component_port to the public bt_port type.
Definition self-component-port.h:143
struct bt_self_component bt_self_component
Self component.
Definition types.h:71