X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Ffields-internal.h;h=d0e97471da456368ff59c773b2e0d43f41dab434;hp=47e1fd0e4eaff6e39526daecbf2542e578c9da43;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hpb=d1e4683534e67cc8643ad27536f64f6cc54bc5dc diff --git a/include/babeltrace/ctf-writer/fields-internal.h b/include/babeltrace/ctf-writer/fields-internal.h index 47e1fd0e..d0e97471 100644 --- a/include/babeltrace/ctf-writer/fields-internal.h +++ b/include/babeltrace/ctf-writer/fields-internal.h @@ -33,17 +33,34 @@ #include #include -/* For bt_bool */ #include #include #include #include +struct bt_ctf_field_enumeration { + struct bt_field_common common; + struct bt_field_common_integer *container; +}; + +struct bt_ctf_field_variant { + struct bt_field_common_variant common; + struct bt_ctf_field_enumeration *tag; +}; + BT_HIDDEN int bt_ctf_field_serialize_recursive(struct bt_ctf_field *field, struct bt_ctf_stream_pos *pos, enum bt_ctf_byte_order native_byte_order); +BT_HIDDEN +int bt_ctf_field_structure_set_field_by_name(struct bt_ctf_field *field, + const char *name, struct bt_ctf_field *value); + +BT_HIDDEN +struct bt_ctf_field *bt_ctf_field_enumeration_borrow_container( + struct bt_ctf_field *field); + static inline bt_bool bt_ctf_field_is_set_recursive(struct bt_ctf_field *field) {