lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / trace-ir / stream-class-const.h
index 662eb2455b63db5aecd46a29d61d80c86c6c1d5c..d8233830580049d91ca6a867e86608c44d4ed0ca 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_TRACE_IR_STREAM_CLASS_CONST_H
-#define BABELTRACE_TRACE_IR_STREAM_CLASS_CONST_H
+#ifndef BABELTRACE2_TRACE_IR_STREAM_CLASS_CONST_H
+#define BABELTRACE2_TRACE_IR_STREAM_CLASS_CONST_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * http://www.efficios.com/ctf
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /*
 extern "C" {
 #endif
 
-typedef enum bt_stream_class_status {
-       BT_STREAM_CLASS_STATUS_OK = 0,
-       BT_STREAM_CLASS_STATUS_NOMEM = -12,
-} bt_stream_class_status;
-
 extern const bt_trace_class *bt_stream_class_borrow_trace_class_const(
                const bt_stream_class *stream_class);
 
@@ -56,6 +55,9 @@ extern bt_bool bt_stream_class_assigns_automatic_event_class_id(
 extern bt_bool bt_stream_class_assigns_automatic_stream_id(
                const bt_stream_class *stream_class);
 
+extern bt_bool bt_stream_class_supports_packets(
+               const bt_stream_class *stream_class);
+
 extern bt_bool bt_stream_class_packets_have_beginning_default_clock_snapshot(
                const bt_stream_class *stream_class);
 
@@ -121,4 +123,4 @@ extern void bt_stream_class_put_ref(const bt_stream_class *stream_class);
 }
 #endif
 
-#endif /* BABELTRACE_TRACE_IR_STREAM_CLASS_CONST_H */
+#endif /* BABELTRACE2_TRACE_IR_STREAM_CLASS_CONST_H */
This page took 0.026482 seconds and 4 git commands to generate.