lib: graph.c: add missing `enum` and `const` keywords
[babeltrace.git] / src / lib / graph / component-class.h
index bded3328a3981eb0e0a0f85ac822de128d2f2cbf..838acbcebd116074b754171efe27ff0d4d9d4ef8 100644 (file)
@@ -54,6 +54,7 @@ struct bt_component_class {
        GString *name;
        GString *description;
        GString *help;
+       GString *plugin_name;
 
        /* Array of struct bt_component_class_destroy_listener */
        GArray *destroy_listeners;
@@ -128,11 +129,11 @@ const char *bt_component_class_type_string(enum bt_component_class_type type)
 {
        switch (type) {
        case BT_COMPONENT_CLASS_TYPE_SOURCE:
-               return "BT_COMPONENT_CLASS_TYPE_SOURCE";
+               return "SOURCE";
        case BT_COMPONENT_CLASS_TYPE_SINK:
-               return "BT_COMPONENT_CLASS_TYPE_SINK";
+               return "SINK";
        case BT_COMPONENT_CLASS_TYPE_FILTER:
-               return "BT_COMPONENT_CLASS_TYPE_FILTER";
+               return "FILTER";
        default:
                return "(unknown)";
        }
This page took 0.023955 seconds and 4 git commands to generate.