lib: make graph API const-correct
[babeltrace.git] / plugins / utils / dummy / dummy.c
index ecb58f570d0024ce15a236856668e65cb3559982..d6230f72e00b190a8563bc6b237ebc23128234c9 100644 (file)
@@ -48,7 +48,8 @@ void dummy_finalize(struct bt_self_component_sink *comp)
 BT_HIDDEN
 enum bt_self_component_status dummy_init(
                struct bt_self_component_sink *component,
-               struct bt_value *params, UNUSED_VAR void *init_method_data)
+               const struct bt_value *params,
+               UNUSED_VAR void *init_method_data)
 {
        enum bt_self_component_status ret;
        struct dummy *dummy = g_new0(struct dummy, 1);
@@ -79,7 +80,7 @@ BT_HIDDEN
 enum bt_self_component_status dummy_port_connected(
                struct bt_self_component_sink *comp,
                struct bt_self_component_port_input *self_port,
-               struct bt_port_output *other_port)
+               const struct bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
        struct dummy *dummy;
@@ -106,7 +107,7 @@ enum bt_self_component_status dummy_consume(
                struct bt_self_component_sink *component)
 {
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
-       bt_notification_array notifs;
+       bt_notification_array_const notifs;
        uint64_t count;
        struct dummy *dummy;
        enum bt_notification_iterator_status it_ret;
This page took 0.022851 seconds and 4 git commands to generate.