Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / formats / ctf / ctf.c
index 9b5302199e17391e0ec73b90d078f44bf0680e27..597e8d25f9e97baf2852d468a2422d3ae7aa377a 100644 (file)
@@ -159,6 +159,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
 int ctf_timestamp_begin(struct bt_trace_descriptor *descriptor,
                struct bt_trace_handle *handle, enum bt_clock_type type,
This page took 0.022575 seconds and 4 git commands to generate.