X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ffield-class.h;h=568edaf9ac738a870580b05f28dc0a3ea0b76433;hb=fe4df857056b4a03898f1031f136359ce733b0f5;hp=e35b39652c21c7570348071f66e017e7e60fd3c5;hpb=9c08c816a55bbc538957648b49d41354e43c7cdf;p=babeltrace.git diff --git a/src/lib/trace-ir/field-class.h b/src/lib/trace-ir/field-class.h index e35b3965..568edaf9 100644 --- a/src/lib/trace-ir/field-class.h +++ b/src/lib/trace-ir/field-class.h @@ -179,6 +179,9 @@ struct bt_field_class { enum bt_field_class_type type; bool frozen; + /* Owned by this */ + struct bt_value *user_attributes; + /* * This flag indicates whether or not this field class is part * of a trace class. @@ -186,6 +189,15 @@ struct bt_field_class { bool part_of_trace_class; }; +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; @@ -232,7 +244,6 @@ struct bt_field_class_enumeration { struct bt_field_class_real { struct bt_field_class common; - bool is_single_precision; }; struct bt_field_class_string { @@ -243,6 +254,9 @@ struct bt_field_class_string { struct bt_named_field_class { GString *name; + /* Owned by this */ + struct bt_value *user_attributes; + /* Owned by this */ struct bt_field_class *fc; @@ -286,13 +300,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;