Rename it to bt_component_borrow_class_const and constify return type,
to match declaration in graph/component-const.h.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
return component->name->str;
}
return component->name->str;
}
-struct bt_component_class *bt_component_borrow_class(
+const struct bt_component_class *bt_component_borrow_class_const(
const struct bt_component *component)
{
BT_ASSERT_PRE_NON_NULL(component, "Component");
const struct bt_component *component)
{
BT_ASSERT_PRE_NON_NULL(component, "Component");