7 #ifndef BABELTRACE2_TRACE_IR_PACKET_H
8 #define BABELTRACE2_TRACE_IR_PACKET_H
12 #ifndef __BT_IN_BABELTRACE_H
13 # error "Please include <babeltrace2/babeltrace.h> instead."
18 #include <babeltrace2/types.h>
282 #define BT_PACKET_PUT_REF_AND_RESET(_packet) \
284 bt_packet_put_ref(_packet); \
313 #define BT_PACKET_MOVE_REF(_dst, _src) \
315 bt_packet_put_ref(_dst); \
const bt_stream * bt_packet_borrow_stream_const(const bt_packet *packet)
Borrows the stream conceptually containing the packet packet (const version).
void bt_packet_put_ref(const bt_packet *packet)
Decrements the reference count of the packet packet.
struct bt_stream bt_stream
Stream.
Definition: types.h:89
void bt_packet_get_ref(const bt_packet *packet)
Increments the reference count of the packet packet.
bt_packet * bt_packet_create(const bt_stream *stream)
Creates a packet for the stream stream.
struct bt_packet bt_packet
Packet.
Definition: types.h:62
struct bt_field bt_field
Field.
Definition: types.h:38
bt_field * bt_packet_borrow_context_field(bt_packet *packet)
Borrows the context field of the packet packet.
const bt_field * bt_packet_borrow_context_field_const(const bt_packet *packet)
Borrows the context field of the packet packet (const version).
bt_stream * bt_packet_borrow_stream(bt_packet *packet)
Borrows the stream conceptually containing the packet packet.