payload_class = bt_field_get_class(payload);
BT_ASSERT(payload_class);
- if (bt_field_class_id(payload_class) != BT_FIELD_CLASS_ID_STRUCT) {
+ if (bt_field_class_id(payload_class) != BT_FIELD_CLASS_TYPE_STRUCT) {
BT_LOGE("Wrong type, expected struct: field-name=\"%s\"",
field_name);
goto end;
sec_class = bt_field_get_class(sec);
BT_ASSERT(sec_class);
- if (bt_field_class_id(sec_class) != BT_FIELD_CLASS_ID_STRUCT) {
+ if (bt_field_class_id(sec_class) != BT_FIELD_CLASS_TYPE_STRUCT) {
BT_LOGE("Wrong type, expected struct, field-name=\"%s\"",
field_name);
goto end;
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_INTEGER) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_INTEGER) {
BT_LOGE("Wrong type, expected integer: field-name=\"%s\"",
field_name);
goto error;
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_INTEGER) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_INTEGER) {
BT_LOGE("Wrong type, expected integer: field-name=\"%s\"", field_name);
goto error;
}
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_INTEGER) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_INTEGER) {
BT_LOGE("Wrong type, expected integer: field-name=\"%s\"",
field_name);
goto error;
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_INTEGER) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_INTEGER) {
BT_LOGE("Wrong type, expected integer: field-name=\"%s\"", field_name);
goto error;
}
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_STRING) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_STRING) {
BT_LOGE("Wrong type, expected string: field-name=\"%s\"",
field_name);
goto error;
field_class = bt_field_get_class(field);
BT_ASSERT(field_class);
- if (bt_field_class_id(field_class) != BT_FIELD_CLASS_ID_SEQUENCE) {
+ if (bt_field_class_id(field_class) != BT_FIELD_CLASS_TYPE_SEQUENCE) {
BT_LOGE("Wrong type, expected sequence: field-name=\"%s\"", field_name);
goto error;
}
* If it is not a structure, we did not modify it to add the debug info
* fields, so just assign it as is.
*/
- if (bt_field_class_id(writer_event_context_class) != BT_FIELD_CLASS_ID_STRUCT) {
+ if (bt_field_class_id(writer_event_context_class) != BT_FIELD_CLASS_TYPE_STRUCT) {
ret = bt_event_set_event_context(writer_event, event_context);
goto end;
}