Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / formats / bt-dummy / bt-dummy.c
index 2f866dc95e3a6cd04e08043fd3576ff8763d56da..fd10ccad39e3f79a500ddf12a87124ec135380ca 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.02263 seconds and 4 git commands to generate.