X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ffield.h;h=2882e778f5a4ebdd88d6feb7a59e092cc587843f;hb=cec0261d56a42e810f56b39fcefbe33987c8aab8;hp=ce595f9726a100c263c38db2aac6dfb161b1a8e9;hpb=45c51519900e100d9acda4acb9516ef69bc2d045;p=babeltrace.git diff --git a/src/lib/trace-ir/field.h b/src/lib/trace-ir/field.h index ce595f97..2882e778 100644 --- a/src/lib/trace-ir/field.h +++ b/src/lib/trace-ir/field.h @@ -105,6 +105,11 @@ struct bt_field { bool frozen; }; +struct bt_field_bool { + struct bt_field common; + bool value; +}; + struct bt_field_integer { struct bt_field common; @@ -126,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;