lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / component-const.h
index 00884cdd0e717a46b8ac0a60268c67c4db1c0194..aa9f84ceef002ac643384ec01eb53ffd913f1bf4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_COMPONENT_CONST_H
-#define BABELTRACE_GRAPH_COMPONENT_CONST_H
+#ifndef BABELTRACE2_GRAPH_COMPONENT_CONST_H
+#define BABELTRACE2_GRAPH_COMPONENT_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_component_class_type */
 #include <babeltrace2/graph/component-class-const.h>
 
@@ -33,6 +37,9 @@
  */
 #include <babeltrace2/types.h>
 
+/* For bt_logging_level */
+#include <babeltrace2/logging.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -45,6 +52,9 @@ extern "C" {
  */
 extern const char *bt_component_get_name(const bt_component *component);
 
+extern bt_logging_level bt_component_get_logging_level(
+               const bt_component *component);
+
 /**
  * Get component's class.
  *
@@ -102,4 +112,4 @@ extern void bt_component_put_ref(const bt_component *component);
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_COMPONENT_CONST_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_CONST_H */
This page took 0.023566 seconds and 4 git commands to generate.