text plugin test
[babeltrace.git] / plugins / ctf / text / text.c
index 49a6335be44a1dba2eb4b4b206d145983465aaf3..28863679efaf90cdff3e0bc43d5bc594febf63b9 100644 (file)
 #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
@@ -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");
 }
This page took 0.023415 seconds and 4 git commands to generate.