7#ifndef BABELTRACE2_GRAPH_CONNECTION_H
8#define BABELTRACE2_GRAPH_CONNECTION_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
16#include <babeltrace2/types.h>
152#define BT_CONNECTION_PUT_REF_AND_RESET(_connection) \
154 bt_connection_put_ref(_connection); \
155 (_connection) = NULL; \
183#define BT_CONNECTION_MOVE_REF(_dst, _src) \
185 bt_connection_put_ref(_dst); \
const bt_port_output * bt_connection_borrow_upstream_port_const(const bt_connection *connection)
Borrows the downstream output port of the connection connection.
void bt_connection_put_ref(const bt_connection *connection)
Decrements the reference count of the connection connection.
void bt_connection_get_ref(const bt_connection *connection)
Increments the reference count of the connection connection.
const bt_port_input * bt_connection_borrow_downstream_port_const(const bt_connection *connection)
Borrows the upstream input port of the connection connection.
struct bt_connection bt_connection
Connection.
Definition types.h:33
struct bt_port_output bt_port_output
Output port.
Definition types.h:67
struct bt_port_input bt_port_input
Input port.
Definition types.h:66