X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent-class.c;h=b86d0b3de08e2960fe6d767d27c25428d294c344;hb=830017b03f9cded62c199b077fb2e18935f8e2ee;hp=00ada3635494175b087e78c5907178a9a5dbf95a;hpb=abd69417bcbf0c66afc5f94c2164397f8df7915f;p=babeltrace.git diff --git a/formats/ctf/ir/event-class.c b/formats/ctf/ir/event-class.c index 00ada363..b86d0b3d 100644 --- a/formats/ctf/ir/event-class.c +++ b/formats/ctf/ir/event-class.c @@ -355,7 +355,7 @@ int bt_ctf_event_class_set_payload_type(struct bt_ctf_event_class *event_class, if (!event_class || !payload || bt_ctf_field_type_get_type_id(payload) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { ret = -1; goto end; } @@ -380,7 +380,7 @@ int bt_ctf_event_class_add_field(struct bt_ctf_event_class *event_class, } if (bt_ctf_field_type_get_type_id(event_class->fields) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { ret = -1; goto end; } @@ -403,7 +403,7 @@ int bt_ctf_event_class_get_field_count( } if (bt_ctf_field_type_get_type_id(event_class->fields) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { ret = -1; goto end; } @@ -426,7 +426,7 @@ int bt_ctf_event_class_get_field(struct bt_ctf_event_class *event_class, } if (bt_ctf_field_type_get_type_id(event_class->fields) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { ret = -1; goto end; } @@ -448,7 +448,7 @@ struct bt_ctf_field_type *bt_ctf_event_class_get_field_by_name( } if (bt_ctf_field_type_get_type_id(event_class->fields) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { goto end; } @@ -495,7 +495,7 @@ int bt_ctf_event_class_set_context_type( goto end; } - if (bt_ctf_field_type_get_type_id(context) != BT_CTF_TYPE_ID_STRUCT) { + if (bt_ctf_field_type_get_type_id(context) != CTF_TYPE_STRUCT) { ret = -1; goto end; }