X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ftext%2Ftext.c;h=28863679efaf90cdff3e0bc43d5bc594febf63b9;hb=4647b93a4bd9f97903acfea2d9342326cca956d6;hp=49a6335be44a1dba2eb4b4b206d145983465aaf3;hpb=92893b7b98654a16ca098aa820b1f82d927826af;p=babeltrace.git diff --git a/plugins/ctf/text/text.c b/plugins/ctf/text/text.c index 49a6335b..28863679 100644 --- a/plugins/ctf/text/text.c +++ b/plugins/ctf/text/text.c @@ -33,17 +33,21 @@ #include #include +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 @@ -66,6 +70,7 @@ enum loglevel { LOGLEVEL_DEBUG = 14, }; +static const char *loglevel_str [] = { [LOGLEVEL_EMERG] = "TRACE_EMERG", [LOGLEVEL_ALERT] = "TRACE_ALERT", @@ -103,13 +108,14 @@ struct ctf_text_component { }; 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"); }