lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / value.h
index 1375940990bc8380cce0b5105c8c5686813dcdd1..87190173b39e7dc16ab996f44f60cff1ded70e09 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_VALUES_H
-#define BABELTRACE_VALUES_H
+#ifndef BABELTRACE2_VALUE_H
+#define BABELTRACE2_VALUE_H
 
 /*
  * Copyright (c) 2015-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_value_type */
 #include <babeltrace2/value-const.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
@@ -177,6 +176,4 @@ bt_value_map_insert_empty_map_entry(bt_value *map_obj, const char *key);
 }
 #endif
 
-#include <babeltrace2/undef-func-status.h>
-
-#endif /* BABELTRACE_VALUES_H */
+#endif /* BABELTRACE2_VALUE_H */
This page took 0.025592 seconds and 4 git commands to generate.