return (void *) message;
}
-BT_HIDDEN
struct bt_message *bt_message_packet_beginning_new(struct bt_graph *graph)
{
return new_packet_message(graph, BT_MESSAGE_TYPE_PACKET_BEGINNING,
(bt_object_release_func) bt_message_packet_beginning_recycle);
}
-BT_HIDDEN
struct bt_message *bt_message_packet_end_new(struct bt_graph *graph)
{
return new_packet_message(graph, BT_MESSAGE_TYPE_PACKET_END,
return (void *) message;
}
+BT_EXPORT
struct bt_message *bt_message_packet_beginning_create(
struct bt_self_message_iterator *self_msg_iter,
const struct bt_packet *packet)
&msg_iter->graph->packet_begin_msg_pool, false, 0, __func__);
}
+BT_EXPORT
struct bt_message *bt_message_packet_beginning_create_with_default_clock_snapshot(
struct bt_self_message_iterator *self_msg_iter,
const struct bt_packet *packet, uint64_t raw_value)
__func__);
}
+BT_EXPORT
struct bt_message *bt_message_packet_end_create(
struct bt_self_message_iterator *self_msg_iter,
const struct bt_packet *packet)
&msg_iter->graph->packet_end_msg_pool, false, 0, __func__);
}
+BT_EXPORT
struct bt_message *bt_message_packet_end_create_with_default_clock_snapshot(
struct bt_self_message_iterator *self_msg_iter,
const struct bt_packet *packet, uint64_t raw_value)
__func__);
}
-BT_HIDDEN
void bt_message_packet_destroy(struct bt_message *msg)
{
struct bt_message_packet *packet_msg = (void *) msg;
bt_object_pool_recycle_object(pool, msg);
}
-BT_HIDDEN
void bt_message_packet_beginning_recycle(struct bt_message *msg)
{
BT_ASSERT(msg);
recycle_packet_message(msg, &msg->graph->packet_begin_msg_pool);
}
-BT_HIDDEN
void bt_message_packet_end_recycle(struct bt_message *msg)
{
BT_ASSERT(msg);
recycle_packet_message(msg, &msg->graph->packet_end_msg_pool);
}
+BT_EXPORT
struct bt_packet *bt_message_packet_beginning_borrow_packet(
struct bt_message *message)
{
return packet_msg->packet;
}
+BT_EXPORT
const struct bt_packet *bt_message_packet_beginning_borrow_packet_const(
const struct bt_message *message)
{
(void *) message);
}
+BT_EXPORT
struct bt_packet *bt_message_packet_end_borrow_packet(
struct bt_message *message)
{
return packet_msg->packet;
}
+BT_EXPORT
const struct bt_packet *bt_message_packet_end_borrow_packet_const(
const struct bt_message *message)
{
return packet_msg->default_cs;
}
+BT_EXPORT
const struct bt_clock_snapshot *
bt_message_packet_beginning_borrow_default_clock_snapshot_const(
const struct bt_message *msg)
return borrow_packet_message_default_clock_snapshot_const(msg);
}
+BT_EXPORT
const struct bt_clock_snapshot *
bt_message_packet_end_borrow_default_clock_snapshot_const(
const struct bt_message *msg)
return packet_msg->packet->stream->class->default_clock_class;
}
+BT_EXPORT
const struct bt_clock_class *
bt_message_packet_beginning_borrow_stream_class_default_clock_class_const(
const struct bt_message *msg)
return borrow_packet_message_stream_class_default_clock_class(msg);
}
+BT_EXPORT
const struct bt_clock_class *
bt_message_packet_end_borrow_stream_class_default_clock_class_const(
const struct bt_message *msg)