2 * SPDX-License-Identifier: MIT
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8 #ifndef BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H
9 #define BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H
11 #include <babeltrace2/graph/message.h>
13 #include "compat/compiler.h"
14 #include "lib/trace-ir/stream.h"
15 #include "lib/trace-ir/clock-snapshot.h"
19 struct bt_message_stream
{
20 struct bt_message parent
;
21 struct bt_stream
*stream
;
22 struct bt_clock_snapshot
*default_cs
;
23 enum bt_message_stream_clock_snapshot_state default_cs_state
;
27 const char *bt_message_stream_clock_snapshot_state_string(
28 enum bt_message_stream_clock_snapshot_state state
)
31 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_KNOWN
:
33 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_UNKNOWN
:
41 #endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H */