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;
if (proto_offset > path_len) {
goto end;
}
+ if (proto == 6) {
+ fprintf(stderr, "[error] IPv6 is currently unsupported by lttng-live\n");
+ goto end;
+ }
/* TODO : parse for IPv6 as well */
/* Parse the hostname or IP */
ret = sscanf(&path[proto_offset], "%[a-zA-Z.0-9%-]%s",
{
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);
}