Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / lib / ctf-writer / visitor.c
index 726512c6cf0823be9439909108b759d78763e34c..e416e7be1a7c84606774808524b4157329741933 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #include <babeltrace/ctf-writer/visitor-internal.h>
-#include <babeltrace/ref.h>
+#include <babeltrace/object.h>
 
 BT_HIDDEN
 int bt_ctf_visitor_helper(struct bt_ctf_visitor_object *root,
@@ -59,7 +59,7 @@ int bt_ctf_visitor_helper(struct bt_ctf_visitor_object *root,
                        goto end;
                }
                ret = child_visitor(child, visitor, data);
-               BT_PUT(child);
+               BT_OBJECT_PUT_REF_AND_RESET(child);
                if (ret) {
                        goto end;
                }
This page took 0.023574 seconds and 4 git commands to generate.