X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=cli%2Fbabeltrace-cfg.c;h=ef8c12b793abcb466414e120bfc690214e744b32;hb=17582c6d9f98ff5ce853169cec4f701da29164c4;hp=759ce3776bc6e37626d0946187a11bc0bac29549;hpb=8138bfe1b1d389d60d8f6c98b8f0cc8e84b9907b;p=babeltrace.git diff --git a/cli/babeltrace-cfg.c b/cli/babeltrace-cfg.c index 759ce377..ef8c12b7 100644 --- a/cli/babeltrace-cfg.c +++ b/cli/babeltrace-cfg.c @@ -24,6 +24,7 @@ #include #include +#include #include #include "babeltrace-cfg.h" @@ -38,7 +39,7 @@ void destroy_gstring(void *data) * and appends them to the array value object plugin_paths. */ enum bt_value_status bt_config_append_plugin_paths( - struct bt_value *plugin_paths, const char *arg) + struct bt_private_value *plugin_paths, const char *arg) { enum bt_value_status status = BT_VALUE_STATUS_OK; GPtrArray *dirs = g_ptr_array_new_with_free_func(destroy_gstring); @@ -59,7 +60,8 @@ enum bt_value_status bt_config_append_plugin_paths( for (i = 0; i < dirs->len; i++) { GString *dir = g_ptr_array_index(dirs, i); - status = bt_value_array_append_string_element(plugin_paths, dir->str); + status = bt_private_value_array_append_string_element( + plugin_paths, dir->str); if (status != BT_VALUE_STATUS_OK) { break; }