lib: add option field class and field types
[babeltrace.git] / src / lib / trace-ir / field.h
index 352514effc2f52dc13b321eb41014bdc08a85fc3..2882e778f5a4ebdd88d6feb7a59e092cc587843f 100644 (file)
@@ -131,6 +131,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.028175 seconds and 4 git commands to generate.