lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / self-component-filter.h
index 4aef3cccf683b0064dca54e3671f1364dd682435..12a6fa8deec772fac6398e349a2146750d0a9655 100644 (file)
@@ -46,16 +46,13 @@ struct bt_self_component *bt_self_component_filter_as_self_component(
 }
 
 static inline
-struct bt_component_filter *
+const struct bt_component_filter *
 bt_self_component_filter_as_component_filter(
                struct bt_self_component_filter *self_comp_filter)
 {
-       return (void *) self_comp_filter;
+       return (const void *) self_comp_filter;
 }
 
-extern struct bt_self_component *bt_self_component_borrow_from_self_component_filter(
-               struct bt_self_component_filter *self_component);
-
 extern struct bt_component_filter *bt_component_filter_borrow_from_self(
                struct bt_self_component_filter *self_component);
 
This page took 0.023416 seconds and 4 git commands to generate.