lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / message-stream-end-const.h
index f4cabd3b212313293e263d9d34a0115f20c3b747..b7bccc7d2d9cf14ce9074e2820317c2e2a4a6f9d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_END_H
-#define BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_END_H
+#ifndef BABELTRACE2_GRAPH_MESSAGE_STREAM_END_CONST_H
+#define BABELTRACE2_GRAPH_MESSAGE_STREAM_END_CONST_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 /* For bt_message, bt_clock_snapshot, bt_stream */
 #include <babeltrace2/types.h>
 
+/* For bt_message_stream_clock_snapshot_state */
+#include <babeltrace2/graph/message-stream-const.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -34,8 +41,16 @@ extern "C" {
 extern const bt_stream *bt_message_stream_end_borrow_stream_const(
                const bt_message *message);
 
+extern enum bt_message_stream_clock_snapshot_state
+bt_message_stream_end_borrow_default_clock_snapshot_const(
+               const bt_message *message, const bt_clock_snapshot **snapshot);
+
+extern const bt_clock_class *
+bt_message_stream_end_borrow_stream_class_default_clock_class_const(
+               const bt_message *msg);
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_END_H */
+#endif /* BABELTRACE2_GRAPH_MESSAGE_STREAM_END_CONST_H */
This page took 0.02327 seconds and 4 git commands to generate.