lib: add bit array field class and field types
[babeltrace.git] / src / lib / trace-ir / field-class.h
index 53041a1315608738f1864b3885d3eee90b15a8c0..77eece7bbe8fa2a12ece112178fde1c87f36484e 100644 (file)
@@ -190,6 +190,11 @@ struct bt_field_class_bool {
        struct bt_field_class common;
 };
 
+struct bt_field_class_bit_array {
+       struct bt_field_class common;
+       uint64_t length;
+};
+
 struct bt_field_class_integer {
        struct bt_field_class common;
 
@@ -290,13 +295,26 @@ struct bt_field_class_array_static {
 struct bt_field_class_array_dynamic {
        struct bt_field_class_array common;
 
-       /* Weak: never dereferenced, only use to find it elsewhere */
+       /* Owned by this */
        struct bt_field_class *length_fc;
 
        /* Owned by this */
        struct bt_field_path *length_field_path;
 };
 
+struct bt_field_class_option {
+       struct bt_field_class common;
+
+       /* Owned by this */
+       struct bt_field_class *content_fc;
+
+       /* Owned by this */
+       struct bt_field_class *selector_fc;
+
+       /* Owned by this */
+       struct bt_field_path *selector_field_path;
+};
+
 /* Variant FC (with selector) option: named field class + range set */
 struct bt_field_class_variant_with_selector_option {
        struct bt_named_field_class common;
This page took 0.025233 seconds and 4 git commands to generate.