plugins: implement plugin unregister
[babeltrace.git] / formats / ctf / ctf.c
index e59e3573b8709b6440e37f8560ca3dfe1e737298..b07c45c3d8de3b334577af85569fa099f373d445 100644 (file)
@@ -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.023462 seconds and 4 git commands to generate.