X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Flibctfcopytrace%2Fctfcopytrace.h;h=748addf79a8369e85f4c7f283022c274f74ab4c2;hb=0f29db567e5be7be7567443fb08b2d34c04715f7;hp=344f1727235a3a9d3b3ef53ddbfcf07d93c933f8;hpb=91b7300484fbb379a7ec769fe29a09ea63dda018;p=babeltrace.git diff --git a/plugins/libctfcopytrace/ctfcopytrace.h b/plugins/libctfcopytrace/ctfcopytrace.h index 344f1727..748addf7 100644 --- a/plugins/libctfcopytrace/ctfcopytrace.h +++ b/plugins/libctfcopytrace/ctfcopytrace.h @@ -81,7 +81,9 @@ enum bt_component_status ctf_copy_event_classes(FILE *err, * Returns NULL or error. */ struct bt_ctf_stream_class *ctf_copy_stream_class(FILE *err, - struct bt_ctf_stream_class *stream_class); + struct bt_ctf_stream_class *stream_class, + struct bt_ctf_trace *writer_trace, + bool override_ts64); /* * Copy the value of a packet context field and add it to the @@ -104,7 +106,7 @@ enum bt_component_status ctf_copy_packet_context_field(FILE *err, * Returns BT_COMPONENT_STATUS_OK on success, and BT_COMPONENT_STATUS_ERROR on * error. */ -enum bt_component_status ctf_copy_packet_context(FILE *err, +struct bt_ctf_field *ctf_copy_packet_context(FILE *err, struct bt_ctf_packet *packet, struct bt_ctf_stream *writer_stream); @@ -115,7 +117,18 @@ enum bt_component_status ctf_copy_packet_context(FILE *err, * Returns NULL on error. */ struct bt_ctf_event *ctf_copy_event(FILE *err, struct bt_ctf_event *event, - struct bt_ctf_event_class *writer_event_class); + struct bt_ctf_event_class *writer_event_class, + bool override_ts64); + +/* + * Copies the content of the event header to writer_event_header. + * + * Returns 0 on success, -1 on error. + */ +int ctf_copy_event_header(FILE *err, struct bt_ctf_event *event, + struct bt_ctf_event_class *writer_event_class, + struct bt_ctf_event *writer_event, + struct bt_ctf_field *event_header); /* * Copy the environment and the packet header from the input trace to the