-#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>
- * Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* SOFTWARE.
*/
-/* For bt_component_class_type */
-#include <babeltrace2/graph/component-class-const.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
-/*
- * For bt_bool, bt_component_class, bt_component_graph, bt_component,
- * bt_value, bt_port
- */
+#include <babeltrace2/graph/component-class-const.h>
#include <babeltrace2/types.h>
+#include <babeltrace2/logging.h>
#ifdef __cplusplus
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.
*
BT_COMPONENT_CLASS_TYPE_SINK;
}
-extern bt_bool bt_component_graph_is_canceled(
- const bt_component *component);
-
extern void bt_component_get_ref(const bt_component *component);
extern void bt_component_put_ref(const bt_component *component);
}
#endif
-#endif /* BABELTRACE_GRAPH_COMPONENT_CONST_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_CONST_H */