lib: add aliases for Babeltrace enumeration types
[babeltrace.git] / include / babeltrace / graph / component-class-const.h
index 9e4e6c7f800ca929b7fdca7ee7d1ed05de969c8e..1c54f6e9ce3d8c3501c78d4a81c035680a6e3735 100644 (file)
 extern "C" {
 #endif
 
-enum bt_component_class_type {
-       BT_COMPONENT_CLASS_TYPE_SOURCE =        0,
-       BT_COMPONENT_CLASS_TYPE_FILTER =        1,
-       BT_COMPONENT_CLASS_TYPE_SINK =          2,
-};
+typedef enum bt_component_class_type {
+       BT_COMPONENT_CLASS_TYPE_SOURCE = 0,
+       BT_COMPONENT_CLASS_TYPE_FILTER = 1,
+       BT_COMPONENT_CLASS_TYPE_SINK = 2,
+} bt_component_class_type;
 
 extern const char *bt_component_class_get_name(
                const bt_component_class *component_class);
@@ -46,7 +46,7 @@ extern const char *bt_component_class_get_description(
 extern const char *bt_component_class_get_help(
                const bt_component_class *component_class);
 
-extern enum bt_component_class_type bt_component_class_get_type(
+extern bt_component_class_type bt_component_class_get_type(
                const bt_component_class *component_class);
 
 static inline
This page took 0.024476 seconds and 4 git commands to generate.