lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / self-component.h
index b5d8f551d5e4d5af7c10b11f810706dc8b14f02b..924ef154fb943f86c99cdd496dbffe5a5f475bc2 100644 (file)
@@ -40,14 +40,14 @@ enum bt_self_component_status {
 };
 
 static inline
-struct bt_component *bt_self_component_as_component(
+const struct bt_component *bt_self_component_as_component(
                struct bt_self_component *self_component)
 {
-       return (void *) self_component;
+       return (const void *) self_component;
 }
 
 extern void *bt_self_component_get_data(
-               struct bt_self_component *private_component);
+               const struct bt_self_component *private_component);
 
 extern void bt_self_component_set_data(
                struct bt_self_component *private_component, void *data);
This page took 0.025728 seconds and 4 git commands to generate.