X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fevent-fields-internal.h;h=e0214e82be3e0d1cc606027254075f7797e7197a;hb=de3dd40e6fcad56e227f5fc8a8290fbaa88b4e07;hp=b79a428828ac55d2486b09e533e7d742014e70fb;hpb=de9dd3975ba39e915d7e046877af9059990c595e;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/event-fields-internal.h b/include/babeltrace/ctf-ir/event-fields-internal.h index b79a4288..e0214e82 100644 --- a/include/babeltrace/ctf-ir/event-fields-internal.h +++ b/include/babeltrace/ctf-ir/event-fields-internal.h @@ -27,14 +27,14 @@ * SOFTWARE. */ -#include #include +#include #include #include #include struct bt_ctf_field { - struct bt_ctf_ref ref_count; + struct bt_ctf_base base; struct bt_ctf_field_type *type; int payload_set; }; @@ -90,9 +90,14 @@ BT_HIDDEN int bt_ctf_field_structure_set_field(struct bt_ctf_field *structure, const char *name, struct bt_ctf_field *value); +/* Validate that the field's payload is set (returns 0 if set). */ BT_HIDDEN int bt_ctf_field_validate(struct bt_ctf_field *field); +/* Mark field payload as unset. */ +BT_HIDDEN +int bt_ctf_field_reset(struct bt_ctf_field *field); + BT_HIDDEN int bt_ctf_field_serialize(struct bt_ctf_field *field, struct ctf_stream_pos *pos);