Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / lib / trace-ir / attributes.c
index caabda3fafe39eca4da493ed7be4dcf926157040..c1c92032305742843a720473e070b604bf2afdc5 100644 (file)
@@ -28,7 +28,7 @@
 #define BT_LOG_TAG "ATTRS"
 #include <babeltrace/lib-logging-internal.h>
 
-#include <babeltrace/ref.h>
+#include <babeltrace/object.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/values.h>
 #include <babeltrace/values-internal.h>
@@ -74,7 +74,7 @@ BT_HIDDEN
 void bt_attributes_destroy(struct bt_value *attr_obj)
 {
        BT_LOGD("Destroying attributes object: addr=%p", attr_obj);
-       bt_put(attr_obj);
+       bt_object_put_ref(attr_obj);
 }
 
 BT_HIDDEN
@@ -272,7 +272,7 @@ int bt_attributes_set_field_value(struct bt_value *attr_obj,
        }
 
 end:
-       bt_put(attr_field_obj);
+       bt_object_put_ref(attr_field_obj);
        return ret;
 }
 
This page took 0.026907 seconds and 4 git commands to generate.