projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: update and simplify the `bt_object` API
[babeltrace.git]
/
lib
/
ctf-writer
/
writer.c
diff --git
a/lib/ctf-writer/writer.c
b/lib/ctf-writer/writer.c
index b51dd7fff7244dd4329f5f2b9c68f1accd2a97c4..0b360c378a34bac90c9e0071a09ad33468e4170f 100644
(file)
--- a/
lib/ctf-writer/writer.c
+++ b/
lib/ctf-writer/writer.c
@@
-120,7
+120,7
@@
struct bt_ctf_writer *bt_ctf_writer_create(const char *path)
metadata_path = g_build_filename(path, "metadata", NULL);
metadata_path = g_build_filename(path, "metadata", NULL);
- bt_object_init
(writer
, bt_ctf_writer_destroy);
+ bt_object_init
_shared(&writer->base
, bt_ctf_writer_destroy);
writer->path = g_string_new(path);
if (!writer->path) {
goto error_destroy;
writer->path = g_string_new(path);
if (!writer->path) {
goto error_destroy;
@@
-148,7
+148,7
@@
struct bt_ctf_writer *bt_ctf_writer_create(const char *path)
goto error_destroy;
}
goto error_destroy;
}
- bt_object_set_parent(
writer->trace, writer
);
+ bt_object_set_parent(
&writer->trace->common.base, &writer->base
);
bt_put(writer->trace);
/* Default to little-endian */
bt_put(writer->trace);
/* Default to little-endian */
@@
-195,7
+195,7
@@
void bt_ctf_writer_destroy(struct bt_object *obj)
}
}
}
}
- bt_object_
release(writer->trac
e);
+ bt_object_
try_spec_release(&writer->trace->common.bas
e);
g_free(writer);
}
g_free(writer);
}
This page took
0.02503 seconds
and
4
git commands to generate.