Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / formats / ctf / ctf.c
index 324b9f8e10b5059af7220421b107e70feca9718c..d6d078f5386308ee26db4a58a2cd2d03681f896c 100644 (file)
@@ -157,6 +157,14 @@ struct bt_format ctf_format = {
        .convert_index_timestamp = ctf_convert_index_timestamp,
 };
 
+void bt_ctf_hook(void)
+{
+       /*
+        * Dummy function to prevent the linker from discarding this format as
+        * "unused" in static builds.
+        */
+}
+
 static
 uint64_t ctf_timestamp_begin(struct bt_trace_descriptor *descriptor,
                struct bt_trace_handle *handle, enum bt_clock_type type)
This page took 0.022839 seconds and 4 git commands to generate.