if (packet_context_type &&
bt_ctf_field_type_get_type_id(packet_context_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* A packet context must be a structure. */
ret = -1;
goto end;
if (event_header_type &&
bt_ctf_field_type_get_type_id(event_header_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* An event header must be a structure. */
ret = -1;
goto end;
if (event_context_type &&
bt_ctf_field_type_get_type_id(event_context_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* A packet context must be a structure. */
ret = -1;
goto end;