#include <babeltrace/object-internal.h>
#include <babeltrace/ref.h>
+BT_HIDDEN
struct bt_ctf_stream *bt_ctf_packet_get_stream(struct bt_ctf_packet *packet)
{
return packet ? bt_get(packet->stream) : NULL;
}
+BT_HIDDEN
struct bt_ctf_field *bt_ctf_packet_get_header(
struct bt_ctf_packet *packet)
{
return packet ? bt_get(packet->header) : NULL;
}
+BT_HIDDEN
int bt_ctf_packet_set_header(struct bt_ctf_packet *packet,
struct bt_ctf_field *header)
{
return ret;
}
+BT_HIDDEN
struct bt_ctf_field *bt_ctf_packet_get_context(
struct bt_ctf_packet *packet)
{
return packet ? bt_get(packet->context) : NULL;
}
+BT_HIDDEN
int bt_ctf_packet_set_context(struct bt_ctf_packet *packet,
struct bt_ctf_field *context)
{
g_free(packet);
}
+BT_HIDDEN
struct bt_ctf_packet *bt_ctf_packet_create(
struct bt_ctf_stream *stream)
{
babeltrace/ctf-ir/event.h \
babeltrace/ctf-ir/event-class.h \
babeltrace/ctf-ir/stream.h \
- babeltrace/ctf-ir/packet.h \
babeltrace/ctf-ir/stream-class.h \
babeltrace/ctf-ir/trace.h \
babeltrace/ctf-ir/utils.h
babeltrace/ctf-ir/trace-internal.h \
babeltrace/ctf-ir/validation-internal.h \
babeltrace/ctf-ir/field-path.h \
+ babeltrace/ctf-ir/packet.h \
babeltrace/ctf-writer/functor-internal.h \
babeltrace/trace-handle-internal.h \
babeltrace/compat/uuid.h \
struct bt_ctf_field;
struct bt_ctf_field_type;
struct bt_ctf_stream_class;
-struct bt_ctf_packet;
/*
* bt_ctf_event_create: instanciate an event.
struct bt_ctf_stream;
struct bt_ctf_packet;
-extern struct bt_ctf_packet *bt_ctf_packet_create(
+BT_HIDDEN
+struct bt_ctf_packet *bt_ctf_packet_create(
struct bt_ctf_stream *stream);
-extern struct bt_ctf_stream *bt_ctf_packet_get_stream(
+BT_HIDDEN
+struct bt_ctf_stream *bt_ctf_packet_get_stream(
struct bt_ctf_packet *packet);
-extern struct bt_ctf_field *bt_ctf_packet_get_header(
+BT_HIDDEN
+struct bt_ctf_field *bt_ctf_packet_get_header(
struct bt_ctf_packet *packet);
-extern int bt_ctf_packet_set_header(
+BT_HIDDEN
+int bt_ctf_packet_set_header(
struct bt_ctf_packet *packet, struct bt_ctf_field *header);
-extern struct bt_ctf_field *bt_ctf_packet_get_context(
+BT_HIDDEN
+struct bt_ctf_field *bt_ctf_packet_get_context(
struct bt_ctf_packet *context);
-extern int bt_ctf_packet_set_context(
+BT_HIDDEN
+int bt_ctf_packet_set_context(
struct bt_ctf_packet *packet, struct bt_ctf_field *context);
#ifdef __cplusplus