lib: update and simplify the `bt_object` API
[babeltrace.git] / cli / babeltrace-cfg-cli-args.c
index 6182f1a74b321e7fa94cf0d8bc01bca597400ae1..32e950a7d67317a711eefb3bea93cd9532229b58 100644 (file)
@@ -789,7 +789,8 @@ struct bt_config_component *bt_config_component_create(
                goto error;
        }
 
-       bt_object_init(cfg_component, bt_config_component_destroy);
+       bt_object_init_shared(&cfg_component->base,
+               bt_config_component_destroy);
        cfg_component->type = type;
        cfg_component->plugin_name = g_string_new(plugin_name);
        if (!cfg_component->plugin_name) {
@@ -1499,7 +1500,7 @@ struct bt_config *bt_config_base_create(enum bt_config_command command,
                goto error;
        }
 
-       bt_object_init(cfg, bt_config_destroy);
+       bt_object_init_shared(&cfg->base, bt_config_destroy);
        cfg->command = command;
        cfg->command_needs_plugins = needs_plugins;
 
This page took 0.025328 seconds and 4 git commands to generate.