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"
16 #include "common/assert.h"
20 struct bt_message_stream
{
21 struct bt_message parent
;
22 struct bt_stream
*stream
;
23 struct bt_clock_snapshot
*default_cs
;
24 enum bt_message_stream_clock_snapshot_state default_cs_state
;
28 const char *bt_message_stream_clock_snapshot_state_string(
29 enum bt_message_stream_clock_snapshot_state state
)
32 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_KNOWN
:
34 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_UNKNOWN
:
42 #endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H */