lib: update and simplify the `bt_object` API
[babeltrace.git] / lib / graph / iterator.c
index b5eb5649118abb7cbb01cff18ff3e70f29685566..2c83d47bc64b6d546ab4ab64cac288e57da6d89d 100644 (file)
@@ -158,7 +158,7 @@ void bt_private_connection_notification_iterator_destroy(struct bt_object *obj)
         * reference count would go from 1 to 0 again and this function
         * would be called again.
         */
-       obj->ref_count.count++;
+       obj->ref_count++;
        iterator = (void *) obj;
        BT_LOGD("Destroying private connection notification iterator object: addr=%p",
                iterator);
@@ -292,7 +292,7 @@ void init_notification_iterator(struct bt_notification_iterator *iterator,
                enum bt_notification_iterator_type type,
                bt_object_release_func destroy)
 {
-       bt_object_init(iterator, destroy);
+       bt_object_init_shared(&iterator->base, destroy);
        iterator->type = type;
 }
 
This page took 0.025208 seconds and 4 git commands to generate.