Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / formats / ctf-text / ctf-text.c
index a0b423c2254d4793b5298131a262d4d458b5e478..f6151617450c760e2e9fe354aa64c497e39d6a54 100644 (file)
@@ -139,6 +139,14 @@ struct ctf_callsite_dups *ctf_trace_callsite_lookup(struct ctf_trace *trace,
                        (gpointer) (unsigned long) callsite_name);
 }
 
+void bt_ctf_text_hook(void)
+{
+       /*
+        * Dummy function to prevent the linker from discarding this format as
+        * "unused" in static builds.
+        */
+}
+
 int print_field(struct bt_definition *definition)
 {
        /* Print all fields in verbose mode */
This page took 0.022533 seconds and 4 git commands to generate.