lib: rename include dir to babeltrace2
[babeltrace.git] / lib / ctf-writer / field-path.c
index 21d4b6925bbfe6f4a36a96e9b83f04be66cd256b..eb6c0353bcd69a07530d2be1b8ac35be5fca46bc 100644 (file)
  */
 
 #define BT_LOG_TAG "CTF-WRITER-FIELD-PATH"
-#include <babeltrace/lib-logging-internal.h>
+#include <babeltrace2/lib-logging-internal.h>
 
-#include <babeltrace/assert-internal.h>
-#include <babeltrace/ctf-writer/field-path-internal.h>
-#include <babeltrace/ctf-writer/field-types-internal.h>
-#include <babeltrace/ctf-writer/field-types.h>
+#include <babeltrace2/assert-internal.h>
+#include <babeltrace2/ctf-writer/field-path-internal.h>
+#include <babeltrace2/ctf-writer/field-types-internal.h>
+#include <babeltrace2/ctf-writer/field-types.h>
 #include <glib.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <stdint.h>
 
 static
-void field_path_destroy(struct bt_object *obj)
+void field_path_destroy(struct bt_ctf_object *obj)
 {
        struct bt_ctf_field_path *field_path = (struct bt_ctf_field_path *) obj;
 
@@ -67,7 +67,7 @@ struct bt_ctf_field_path *bt_ctf_field_path_create(void)
                goto error;
        }
 
-       bt_object_init_shared(&field_path->base, field_path_destroy);
+       bt_ctf_object_init_shared(&field_path->base, field_path_destroy);
        field_path->root = BT_CTF_SCOPE_UNKNOWN;
        field_path->indexes = g_array_new(TRUE, FALSE, sizeof(int));
        if (!field_path->indexes) {
@@ -79,7 +79,7 @@ struct bt_ctf_field_path *bt_ctf_field_path_create(void)
        return field_path;
 
 error:
-       BT_OBJECT_PUT_REF_AND_RESET(field_path);
+       BT_CTF_OBJECT_PUT_REF_AND_RESET(field_path);
        return NULL;
 }
 
This page took 0.023579 seconds and 4 git commands to generate.