lib: add bit array field class and field types
[babeltrace.git] / src / lib / trace-ir / field.h
index 352514effc2f52dc13b321eb41014bdc08a85fc3..ad25231cf82b0ac24f3772a089a4d608ee6eb35f 100644 (file)
@@ -110,6 +110,11 @@ struct bt_field_bool {
        bool value;
 };
 
+struct bt_field_bit_array {
+       struct bt_field common;
+       uint64_t value_as_int;
+};
+
 struct bt_field_integer {
        struct bt_field common;
 
@@ -131,6 +136,16 @@ struct bt_field_structure {
        GPtrArray *fields;
 };
 
+struct bt_field_option {
+       struct bt_field common;
+
+       /* Owned by this */
+       struct bt_field *content_field;
+
+       /* Weak: equal to `content_field` above or `NULL` */
+       struct bt_field *selected_field;
+};
+
 struct bt_field_variant {
        struct bt_field common;
 
This page took 0.023744 seconds and 4 git commands to generate.