Split CTF IR and CTF writer APIs and implementations
[babeltrace.git] / include / babeltrace / ctf-ir / field-path-internal.h
index 2f9611c8e8c30e4d9130a5c6e2105c8098332f89..907be9b2dcfe17b43f88df4ca43a324e3f8a6957 100644 (file)
@@ -28,6 +28,7 @@
  * http://www.efficios.com/ctf
  */
 
+#include <babeltrace/common-internal.h>
 #include <babeltrace/object-internal.h>
 #include <babeltrace/assert-internal.h>
 #include <glib.h>
@@ -55,30 +56,4 @@ BT_HIDDEN
 struct bt_field_path *bt_field_path_copy(
                struct bt_field_path *path);
 
-static inline
-GString *bt_field_path_string(struct bt_field_path *path)
-{
-       GString *str = g_string_new(NULL);
-       size_t i;
-
-       BT_ASSERT(path);
-
-       if (!str) {
-               goto end;
-       }
-
-       g_string_append_printf(str, "[%s", bt_scope_string(path->root));
-
-       for (i = 0; i < path->indexes->len; i++) {
-               int index = g_array_index(path->indexes, int, i);
-
-               g_string_append_printf(str, ", %d", index);
-       }
-
-       g_string_append(str, "]");
-
-end:
-       return str;
-}
-
 #endif /* BABELTRACE_CTF_IR_FIELD_PATH_INTERNAL */
This page took 0.023908 seconds and 4 git commands to generate.