1#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H
2#define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H
26#ifndef __BT_IN_BABELTRACE_H
27# error "Please include <babeltrace2/babeltrace.h> instead."
30#include <babeltrace2/types.h>
103 bt_self_component_port *self_component_port);
131 const bt_self_component_port *self_component_port);
158 bt_self_component_port *self_component_port)
160 return __BT_UPCAST_CONST(bt_port, self_component_port);
180 const bt_self_component_port_input *self_component_port)
182 return __BT_UPCAST_CONST(bt_port_input, self_component_port);
202 bt_self_component_port_output *self_component_port)
204 return __BT_UPCAST_CONST(bt_port_output, self_component_port);
231bt_self_component_port *
233 bt_self_component_port_input *self_component_port)
235 return __BT_UPCAST(bt_self_component_port, self_component_port);
255bt_self_component_port *
257 bt_self_component_port_output *self_component_port)
259 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:201
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:256
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:179
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:232
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:157