1#ifndef BABELTRACE2_GRAPH_PORT_H 
    2#define BABELTRACE2_GRAPH_PORT_H 
   26#ifndef __BT_IN_BABELTRACE_H 
   27# error "Please include <babeltrace2/babeltrace.h> instead." 
   32#include <babeltrace2/types.h> 
  399#define BT_PORT_PUT_REF_AND_RESET(_port)    \ 
  401        bt_port_put_ref(_port);     \ 
 
  430#define BT_PORT_MOVE_REF(_dst, _src)    \ 
  432        bt_port_put_ref(_dst);  \ 
 
  462    return __BT_UPCAST_CONST(
bt_port, port);
 
 
  513#define BT_PORT_INPUT_PUT_REF_AND_RESET(_port)      \ 
  515        bt_port_input_put_ref(_port);       \ 
 
  544#define BT_PORT_INPUT_MOVE_REF(_dst, _src)  \ 
  546        bt_port_input_put_ref(_dst);    \ 
 
  576    return __BT_UPCAST_CONST(
bt_port, port);
 
 
  627#define BT_PORT_OUTPUT_PUT_REF_AND_RESET(_port)     \ 
  629        bt_port_output_put_ref(_port);      \ 
 
  658#define BT_PORT_OUTPUT_MOVE_REF(_dst, _src) \ 
  660        bt_port_output_put_ref(_dst);   \ 
 
int bt_bool
Babeltrace 2 boolean type.
Definition types.h:140
struct bt_component bt_component
Component.
Definition types.h:38
struct bt_connection bt_connection
Connection.
Definition types.h:47
void bt_port_output_get_ref(const bt_port_output *port)
Increments the reference count of the output port port.
void bt_port_input_get_ref(const bt_port_input *port)
Increments the reference count of the input port port.
void bt_port_put_ref(const bt_port *port)
Decrements the reference count of the port port.
struct bt_port_output bt_port_output
Output port.
Definition types.h:81
struct bt_port bt_port
Port.
Definition types.h:79
bt_bool bt_port_is_connected(const bt_port *port)
Returns whether or not the port port is connected.
bt_port_type bt_port_get_type(const bt_port *port)
Returns the type enumerator of the port port.
const bt_component * bt_port_borrow_component_const(const bt_port *port)
Borrows the component to which the port port belongs.
static bt_bool bt_port_is_input(const bt_port *port)
Returns whether or not the port port is an input port.
Definition port.h:228
void bt_port_output_put_ref(const bt_port_output *port)
Decrements the reference count of the output port port.
static const bt_port * bt_port_output_as_port_const(const bt_port_output *port)
Upcasts the output port port to the common bt_port type.
Definition port.h:574
struct bt_port_input bt_port_input
Input port.
Definition types.h:80
static bt_bool bt_port_is_output(const bt_port *port)
Returns whether or not the port port is an output port.
Definition port.h:249
bt_port_type
Port type enumerators.
Definition port.h:179
void bt_port_get_ref(const bt_port *port)
Increments the reference count of the port port.
const bt_connection * bt_port_borrow_connection_const(const bt_port *port)
Borrows the connection of the port port.
void bt_port_input_put_ref(const bt_port_input *port)
Decrements the reference count of the input port port.
static const bt_port * bt_port_input_as_port_const(const bt_port_input *port)
Upcasts the input port port to the common bt_port type.
Definition port.h:460
const char * bt_port_get_name(const bt_port *port)
Returns the name of the port port.
@ BT_PORT_TYPE_INPUT
Input port.
Definition port.h:184
@ BT_PORT_TYPE_OUTPUT
Output port.
Definition port.h:190