X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component.h;fp=include%2Fbabeltrace%2Fgraph%2Fself-component.h;h=924ef154fb943f86c99cdd496dbffe5a5f475bc2;hb=0d72b8c329ad51d14ab4e83330b38c2c8da69dd4;hp=b5d8f551d5e4d5af7c10b11f810706dc8b14f02b;hpb=92fed4e1f98f18e4edbfdf5adfe57741a3260b5d;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component.h b/include/babeltrace/graph/self-component.h index b5d8f551..924ef154 100644 --- a/include/babeltrace/graph/self-component.h +++ b/include/babeltrace/graph/self-component.h @@ -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);