cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[babeltrace.git] / src / lib / graph / message / packet.h
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
15 #include "message.h"
16
17 struct bt_message_packet {
18 struct bt_message parent;
19 struct bt_packet *packet;
20 struct bt_clock_snapshot *default_cs;
21 };
22
23 void bt_message_packet_destroy(struct bt_message *msg);
24
25 struct bt_message *bt_message_packet_beginning_new(
26 struct bt_graph *graph);
27 void bt_message_packet_beginning_recycle(struct bt_message *msg);
28
29 struct bt_message *bt_message_packet_end_new(struct bt_graph *graph);
30
31 void bt_message_packet_end_recycle(struct bt_message *msg);
32
33 #endif /* BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H */
This page took 0.030504 seconds and 4 git commands to generate.