@ingroup ctfir
@brief CTF IR packet.
+@code
+#include <babeltrace/ctf-ir/packet.h>
+@endcode
+
A CTF IR <strong><em>packet</em></strong> is a container of packet
fields, that is, of the <strong>trace packet header</strong> and
<strong>stream packet context</strong> fields.
@returns Parent stream of \p packet, or \c NULL on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
*/
extern struct bt_ctf_stream *bt_ctf_packet_get_stream(
field is not set or on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
@sa bt_ctf_packet_set_header(): Sets the trace packet header
field is not set or on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
@sa bt_ctf_packet_set_context(): Sets the stream packet context