lib: simplify the public notification iterator interfaces
[babeltrace.git] / plugins / utils / dummy / dummy.c
index ad48e6985dd1c19968a7845b0c1f2d99b50d1b58..5109259eff34033d172c923f8b8e707baa03d41b 100644 (file)
@@ -88,7 +88,7 @@ void dummy_port_connected(
        connection = bt_private_port_get_private_connection(self_port);
        BT_ASSERT(connection);
        conn_status = bt_private_connection_create_notification_iterator(
-               connection, NULL, &iterator);
+               connection, &iterator);
        if (conn_status != BT_CONNECTION_STATUS_OK) {
                dummy->error = true;
                goto end;
@@ -121,7 +121,8 @@ enum bt_component_status dummy_consume(struct bt_private_component *component)
        }
 
        /* Consume one notification  */
-       it_ret = bt_notification_iterator_next(dummy->notif_iter);
+       it_ret = bt_private_connection_notification_iterator_next(
+               dummy->notif_iter, &notif);
        switch (it_ret) {
        case BT_NOTIFICATION_ITERATOR_STATUS_ERROR:
                ret = BT_COMPONENT_STATUS_ERROR;
This page took 0.026159 seconds and 4 git commands to generate.