goto end;
}
- if (bt_ctf_field_type_get_type_id(sec_type) != BT_CTF_TYPE_ID_STRUCT) {
+ if (bt_ctf_field_type_get_type_id(sec_type) != BT_CTF_FIELD_TYPE_ID_STRUCT) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto end;
goto end;
}
- if (bt_ctf_field_type_get_type_id(sec_type) != BT_CTF_TYPE_ID_STRUCT) {
+ if (bt_ctf_field_type_get_type_id(sec_type) != BT_CTF_FIELD_TYPE_ID_STRUCT) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto end;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_INTEGER) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_INTEGER) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_INTEGER) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_INTEGER) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_INTEGER) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_INTEGER) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_INTEGER) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_INTEGER) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_STRING) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_STRING) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
goto error;
}
- if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_TYPE_ID_SEQUENCE) {
+ if (bt_ctf_field_type_get_type_id(field_type) != BT_CTF_FIELD_TYPE_ID_SEQUENCE) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
goto error;
}
BT_PUT(field);
- debug_info = debug_info_create();
+ debug_info = debug_info_create(debug_it->debug_info_component);
if (!debug_info) {
fprintf(debug_it->err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
for (i = 0; i < clock_class_count; i++) {
struct bt_ctf_clock_class *clock_class =
- bt_ctf_trace_get_clock_class(trace, i);
+ bt_ctf_trace_get_clock_class_by_index(trace, i);
if (!clock_class) {
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
struct bt_ctf_stream_class *writer_stream_class,
struct bt_ctf_event_class *event_class)
{
- return bt_ctf_stream_class_get_event_class_by_name(writer_stream_class,
- bt_ctf_event_class_get_name(event_class));
+ return bt_ctf_stream_class_get_event_class_by_id(writer_stream_class,
+ bt_ctf_event_class_get_id(event_class));
}
static
* 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_ctf_field_type_get_type_id(writer_event_context_type) != BT_CTF_TYPE_ID_STRUCT) {
+ if (bt_ctf_field_type_get_type_id(writer_event_context_type) != BT_CTF_FIELD_TYPE_ID_STRUCT) {
ret = bt_ctf_event_set_event_context(writer_event, event_context);
goto end;
}
}
/* FIXME multi-clock? */
- clock_class = bt_ctf_trace_get_clock_class(trace, 0);
+ clock_class = bt_ctf_trace_get_clock_class_by_index(trace, 0);
bt_put(trace);
struct debug_info_component *component)
{
struct bt_ctf_event *writer_event = NULL;
- struct bt_ctf_field *field, *copy_field = NULL;
+ struct bt_ctf_field *field = NULL, *copy_field = NULL;
int ret;
writer_event = bt_ctf_event_create(writer_event_class);
}
BT_PUT(field);
- field = bt_ctf_event_get_payload_field(event);
+ field = bt_ctf_event_get_event_payload(event);
if (!field) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
}
copy_field = bt_ctf_field_copy(field);
if (copy_field) {
- ret = bt_ctf_event_set_payload_field(writer_event, copy_field);
+ ret = bt_ctf_event_set_event_payload(writer_event, copy_field);
if (ret < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
struct bt_ctf_event_class *event_class = NULL, *writer_event_class = NULL;
struct bt_ctf_stream_class *stream_class = NULL, *writer_stream_class = NULL;
struct bt_ctf_event *writer_event = NULL;
- struct bt_ctf_packet *packet, *writer_packet = NULL;
+ struct bt_ctf_packet *packet = NULL, *writer_packet = NULL;
struct bt_ctf_trace *writer_trace = NULL;
struct debug_info *debug_info;
const char *event_name;