lib: add aliases for Babeltrace structure types
[babeltrace.git] / plugins / utils / dummy / dummy.c
index ecb58f570d0024ce15a236856668e65cb3559982..a2bab43008f978f128d9db05f4d595d18016013c 100644 (file)
 
 void destroy_private_dummy_data(struct dummy *dummy)
 {
-       bt_object_put_ref(dummy->notif_iter);
+       bt_self_component_port_input_notification_iterator_put_ref(dummy->notif_iter);
        g_free(dummy);
 
 }
 
 BT_HIDDEN
-void dummy_finalize(struct bt_self_component_sink *comp)
+void dummy_finalize(bt_self_component_sink *comp)
 {
        struct dummy *dummy;
 
@@ -47,8 +47,9 @@ 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)
+               bt_self_component_sink *component,
+               const bt_value *params,
+               UNUSED_VAR void *init_method_data)
 {
        enum bt_self_component_status ret;
        struct dummy *dummy = g_new0(struct dummy, 1);
@@ -77,13 +78,13 @@ end:
 
 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)
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
        struct dummy *dummy;
-       struct bt_self_component_port_input_notification_iterator *iterator;
+       bt_self_component_port_input_notification_iterator *iterator;
 
        dummy = bt_self_component_get_data(
                bt_self_component_sink_as_self_component(comp));
@@ -95,7 +96,8 @@ enum bt_self_component_status dummy_port_connected(
                goto end;
        }
 
-       BT_OBJECT_MOVE_REF(dummy->notif_iter, iterator);
+       BT_SELF_COMPONENT_PORT_INPUT_NOTIFICATION_ITERATOR_MOVE_REF(
+               dummy->notif_iter, iterator);
 
 end:
        return status;
@@ -103,10 +105,10 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status dummy_consume(
-               struct bt_self_component_sink *component)
+               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;
@@ -129,7 +131,7 @@ enum bt_self_component_status dummy_consume(
                ret = BT_SELF_COMPONENT_STATUS_OK;
 
                for (i = 0; i < count; i++) {
-                       bt_object_put_ref(notifs[i]);
+                       bt_notification_put_ref(notifs[i]);
                }
 
                break;
This page took 0.024308 seconds and 4 git commands to generate.