Adjust bt_component_borrow_class to match declaration
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 1 Apr 2019 20:01:08 +0000 (16:01 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:09:19 +0000 (00:09 -0400)
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>
lib/graph/component.c

index 53c9cd6defa4a12d9cac248e78ac4073e49b200e..6321762f032a8bc6804da82be455903b4daaee97 100644 (file)
@@ -331,7 +331,7 @@ const char *bt_component_get_name(const struct bt_component *component)
        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");
This page took 0.02591 seconds and 5 git commands to generate.