Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / formats / bt-dummy / bt-dummy.c
index 6192e88807570602fe31813f8a3303fa8c8858e4..65f2308145d1722c3845223f25326981be624b83 100644 (file)
 #include <unistd.h>
 #include <stdlib.h>
 
+void bt_dummy_hook(void)
+{
+       /*
+        * Dummy function to prevent the linker from discarding this format as
+        * "unused" in static builds.
+        */
+}
+
 static
 int bt_dummy_write_event(struct bt_stream_pos *ppos, struct ctf_stream_definition *stream)
 {
This page took 0.023729 seconds and 4 git commands to generate.