lib: use powers of two for object type enumerators
[babeltrace.git] / include / babeltrace2 / graph / component-class-const.h
index f265929a502ff9bbd50daad3113390da528690cb..da46d290cbfa6eaac47920bcbf0348eaea1e9234 100644 (file)
@@ -34,9 +34,9 @@ extern "C" {
 #endif
 
 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_SOURCE  = 1 << 0,
+       BT_COMPONENT_CLASS_TYPE_FILTER  = 1 << 1,
+       BT_COMPONENT_CLASS_TYPE_SINK    = 1 << 2,
 } bt_component_class_type;
 
 extern const char *bt_component_class_get_name(
This page took 0.023465 seconds and 4 git commands to generate.