lib: remove unused includes
[babeltrace.git] / src / lib / graph / message / stream.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_STREAM_INTERNAL_H
9 #define BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H
10
11 #include <babeltrace2/graph/message.h>
12
13 #include "compat/compiler.h"
14 #include "lib/trace-ir/stream.h"
15 #include "lib/trace-ir/clock-snapshot.h"
16
17 #include "message.h"
18
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;
24 };
25
26 static inline
27 const char *bt_message_stream_clock_snapshot_state_string(
28 enum bt_message_stream_clock_snapshot_state state)
29 {
30 switch (state) {
31 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_KNOWN:
32 return "KNOWN";
33 case BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_UNKNOWN:
34 return "UNKNOWN";
35 default:
36 return "(unknown)";
37 }
38 }
39
40
41 #endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H */
This page took 0.036732 seconds and 4 git commands to generate.