lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / self-component.h
index 898c0d9a03933026e77162e4b725e8b2c3c50c8a..f0b02ee80a6486f1d687d1fb308d674023b4229c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_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_component, bt_self_component, __BT_UPCAST */
 #include <babeltrace2/types.h>
 
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -58,6 +57,4 @@ extern void bt_self_component_set_data(
 }
 #endif
 
-#include <babeltrace2/undef-func-status.h>
-
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_H */
This page took 0.023483 seconds and 4 git commands to generate.