projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plugins: implement plugin unregister
[deliverable/babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index e59e3573b8709b6440e37f8560ca3dfe1e737298..b07c45c3d8de3b334577af85569fa099f373d445 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-1935,6
+1935,7
@@
void ctf_set_handle(struct trace_descriptor *descriptor,
td->handle = handle;
}
+static
void __attribute__((constructor)) ctf_init(void)
{
int ret;
@@
-1944,4
+1945,8
@@
void __attribute__((constructor)) ctf_init(void)
assert(!ret);
}
-/* TODO: finalize */
+static
+void __attribute__((destructor)) ctf_exit(void)
+{
+ bt_unregister_format(&ctf_format);
+}
This page took
0.024161 seconds
and
5
git commands to generate.