lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / plugin / plugin-const.h
index db01f89b525625a55011e81495090cfffb135f80..df82ddc029895705227110af8a3fbd382c9e6025 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_PLUGIN_PLUGIN_CONST_H
-#define BABELTRACE_PLUGIN_PLUGIN_CONST_H
+#ifndef BABELTRACE2_PLUGIN_PLUGIN_CONST_H
+#define BABELTRACE2_PLUGIN_PLUGIN_CONST_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 #include <stddef.h>
 
 /* For bt_property_availability */
 #include <babeltrace2/property.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
@@ -162,6 +161,4 @@ extern void bt_plugin_put_ref(const bt_plugin *plugin);
 }
 #endif
 
-#include <babeltrace2/undef-func-status.h>
-
-#endif /* BABELTRACE_PLUGIN_PLUGIN_CONST_H */
+#endif /* BABELTRACE2_PLUGIN_PLUGIN_CONST_H */
This page took 0.024571 seconds and 4 git commands to generate.