1 #ifndef BABELTRACE2_TRACE_IR_PACKET_H
2 #define BABELTRACE2_TRACE_IR_PACKET_H
26 #ifndef __BT_IN_BABELTRACE_H
27 # error "Please include <babeltrace2/babeltrace.h> instead."
32 #include <babeltrace2/types.h>
296 #define BT_PACKET_PUT_REF_AND_RESET(_packet) \
298 bt_packet_put_ref(_packet); \
327 #define BT_PACKET_MOVE_REF(_dst, _src) \
329 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:103
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:75
struct bt_field bt_field
Field.
Definition: types.h:53
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.