lib: use powers of two for object type enumerators
[babeltrace.git] / include / babeltrace2 / trace-ir / field-path-const.h
index 0f44a63db7e4877925a974642aef875ee15bbf3e..06dfe052b1067100fda31b52c3006466badc189f 100644 (file)
@@ -36,9 +36,9 @@ extern "C" {
 #endif
 
 typedef enum bt_field_path_item_type {
-       BT_FIELD_PATH_ITEM_TYPE_INDEX                           = 0,
-       BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT           = 1,
-       BT_FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT          = 2,
+       BT_FIELD_PATH_ITEM_TYPE_INDEX                           = 1 << 0,
+       BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT           = 1 << 1,
+       BT_FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT          = 1 << 2,
 } bt_field_path_item_type;
 
 typedef enum bt_field_path_scope {
This page took 0.024579 seconds and 4 git commands to generate.