lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / message-stream-beginning-const.h
index 630c30c18426d06f14506fa5b5798eb85750de8d..95b58f073d32ab51b6c45f9b6485aac8c42611c9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_CONST_H
-#define BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_CONST_H
+#ifndef BABELTRACE2_GRAPH_MESSAGE_STREAM_BEGINNING_CONST_H
+#define BABELTRACE2_GRAPH_MESSAGE_STREAM_BEGINNING_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_beginning_borrow_stream_const(
                const bt_message *message);
 
+extern enum bt_message_stream_clock_snapshot_state
+bt_message_stream_beginning_borrow_default_clock_snapshot_const(
+               const bt_message *message, const bt_clock_snapshot **snapshot);
+
+extern const bt_clock_class *
+bt_message_stream_beginning_borrow_stream_class_default_clock_class_const(
+               const bt_message *msg);
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_BEGINNING_CONST_H */
+#endif /* BABELTRACE2_GRAPH_MESSAGE_STREAM_BEGINNING_CONST_H */
This page took 0.024188 seconds and 4 git commands to generate.