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>
89 bt_self_component_port *self_component_port) __BT_NOEXCEPT;
117 const bt_self_component_port *self_component_port)
144 bt_self_component_port *self_component_port) __BT_NOEXCEPT
146 return __BT_UPCAST_CONST(bt_port, self_component_port);
166 const bt_self_component_port_input *self_component_port)
169 return __BT_UPCAST_CONST(bt_port_input, self_component_port);
189 bt_self_component_port_output *self_component_port)
192 return __BT_UPCAST_CONST(bt_port_output, self_component_port);
219bt_self_component_port *
221 bt_self_component_port_input *self_component_port)
224 return __BT_UPCAST(bt_self_component_port, self_component_port);
244bt_self_component_port *
246 bt_self_component_port_output *self_component_port)
249 return __BT_UPCAST(bt_self_component_port, self_component_port);
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.
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
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
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