#include <glib.h>
#include <stdio.h>
+static
const char *plugin_name = "ctf-text";
-static enum bt_component_status ctf_text_init(struct bt_component *);
-static void ctf_text_exit(void);
+static
+enum bt_component_status ctf_text_init(struct bt_component *);
+static
+void ctf_text_plugin_exit(void);
/* Initialize plug-in entry points. */
BT_PLUGIN_NAME("ctf-text");
BT_PLUGIN_AUTHOR("Jérémie Galarneau");
BT_PLUGIN_LICENSE("MIT License");
-BT_PLUGIN_EXIT(ctf_text_exit);
+BT_PLUGIN_EXIT(ctf_text_plugin_exit);
+/* Defines BT_PLUGIN_INIT. */
BT_PLUGIN_COMPONENT_CLASSES_BEGIN
BT_PLUGIN_SINK_COMPONENT_CLASS_ENTRY(plugin_name, ctf_text_init)
BT_PLUGIN_COMPONENT_CLASSES_END
LOGLEVEL_DEBUG = 14,
};
+static
const char *loglevel_str [] = {
[LOGLEVEL_EMERG] = "TRACE_EMERG",
[LOGLEVEL_ALERT] = "TRACE_ALERT",
};
static
-enum bt_component_status ctf_text_init(struct bt_component *component)
+enum bt_component_status ctf_text_init(
+ struct bt_component *component)
{
return BT_COMPONENT_STATUS_OK;
}
static
-void ctf_text_exit(void)
+void ctf_text_plugin_exit(void)
{
printf("in ctf_text_exit\n");
}