X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Flttng-live%2Flttng-live-plugin.c;h=f2c7536ec0d4e6223f21d68985fa9fcbb0665b3b;hb=7e3e3582f6fc79c97b07fad7fa7019e8a80aeb0e;hp=a1fbb9e826efc903009e777a70dc0fd7522004c4;hpb=36e3a7138222506379722693769c112850b0e40c;p=babeltrace.git diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c index a1fbb9e8..f2c7536e 100644 --- a/formats/lttng-live/lttng-live-plugin.c +++ b/formats/lttng-live/lttng-live-plugin.c @@ -41,6 +41,14 @@ static volatile int should_quit; +void bt_lttng_live_hook(void) +{ + /* + * Dummy function to prevent the linker from discarding this format as + * "unused" in static builds. + */ +} + int lttng_live_should_quit(void) { return should_quit; @@ -332,7 +340,7 @@ void __attribute__((constructor)) lttng_live_init(void) { int ret; - lttng_live_format.name = g_quark_from_static_string("lttng-live"); + lttng_live_format.name = g_quark_from_string("lttng-live"); ret = bt_register_format(<tng_live_format); assert(!ret); }