| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com> |
| 5 | * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
| 6 | */ |
| 7 | |
| 8 | #ifndef BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H |
| 9 | #define BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H |
| 10 | |
| 11 | #include "compat/compiler.h" |
| 12 | #include <babeltrace2/trace-ir/packet.h> |
| 13 | #include "lib/trace-ir/clock-snapshot.h" |
| 14 | #include "common/assert.h" |
| 15 | #include "common/macros.h" |
| 16 | |
| 17 | #include "message.h" |
| 18 | |
| 19 | struct bt_message_packet { |
| 20 | struct bt_message parent; |
| 21 | struct bt_packet *packet; |
| 22 | struct bt_clock_snapshot *default_cs; |
| 23 | }; |
| 24 | |
| 25 | BT_HIDDEN |
| 26 | void bt_message_packet_destroy(struct bt_message *msg); |
| 27 | |
| 28 | BT_HIDDEN |
| 29 | struct bt_message *bt_message_packet_beginning_new( |
| 30 | struct bt_graph *graph); |
| 31 | BT_HIDDEN |
| 32 | void bt_message_packet_beginning_recycle(struct bt_message *msg); |
| 33 | |
| 34 | BT_HIDDEN |
| 35 | struct bt_message *bt_message_packet_end_new(struct bt_graph *graph); |
| 36 | |
| 37 | BT_HIDDEN |
| 38 | void bt_message_packet_end_recycle(struct bt_message *msg); |
| 39 | |
| 40 | #endif /* BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H */ |