Values API: split into private and public APIs
[babeltrace.git] / cli / babeltrace-cfg.c
index 759ce3776bc6e37626d0946187a11bc0bac29549..ef8c12b793abcb466414e120bfc690214e744b32 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <babeltrace/common-internal.h>
 #include <babeltrace/values.h>
+#include <babeltrace/private-values.h>
 #include <glib.h>
 #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;
                }
This page took 0.028363 seconds and 4 git commands to generate.