X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fcomponent-const.h;h=11554b5e3b21306a9557c90b111171809a537766;hb=9b4f9b425f2efce9a6ccc25f7ae062ebc1116a7d;hp=00884cdd0e717a46b8ac0a60268c67c4db1c0194;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/graph/component-const.h b/include/babeltrace2/graph/component-const.h index 00884cdd..11554b5e 100644 --- a/include/babeltrace2/graph/component-const.h +++ b/include/babeltrace2/graph/component-const.h @@ -1,9 +1,8 @@ -#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 - * Copyright 2015 Jérémie Galarneau + * 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 @@ -24,14 +23,13 @@ * SOFTWARE. */ -/* For bt_component_class_type */ -#include +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif -/* - * For bt_bool, bt_component_class, bt_component_graph, bt_component, - * bt_value, bt_port - */ +#include #include +#include #ifdef __cplusplus extern "C" { @@ -45,6 +43,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. * @@ -78,9 +79,6 @@ bt_bool bt_component_is_sink(const bt_component *component) 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); @@ -102,4 +100,4 @@ extern void bt_component_put_ref(const bt_component *component); } #endif -#endif /* BABELTRACE_GRAPH_COMPONENT_CONST_H */ +#endif /* BABELTRACE2_GRAPH_COMPONENT_CONST_H */