Fix copytrace: copy packet_context
[babeltrace.git] / plugins / libctfcopytrace / ctfcopytrace.h
index 2ca5b789e810d954aa5ab2a8af8e5fd95692ce3f..785f8a4711b98459f7b0f248594c6bb81ea7933d 100644 (file)
@@ -104,16 +104,25 @@ enum bt_component_status ctf_copy_packet_context_field(FILE *err,
 
 /*
  * Copy all the field values of the packet context from the packet passed in
- * parameter and set it to the current packet in the writer stream.
+ * parameter and set it to the writer_stream.
  *
- * Returns BT_COMPONENT_STATUS_OK on success, and BT_COMPONENT_STATUS_ERROR on
- * error.
+ * Returns 0 on success or -1 on error.
  */
 BT_HIDDEN
-struct bt_ctf_field *ctf_copy_packet_context(FILE *err,
-               struct bt_ctf_packet *packet,
+int ctf_stream_copy_packet_context(FILE *err, struct bt_ctf_packet *packet,
                struct bt_ctf_stream *writer_stream);
 
+/*
+ * Copy all the field values of the packet context from the packet passed in
+ * parameter and set it to the writer_packet.
+ *
+ * Returns 0 on success or -1 on error.
+ */
+BT_HIDDEN
+int ctf_packet_copy_context(FILE *err, struct bt_ctf_packet *packet,
+               struct bt_ctf_stream *writer_stream,
+               struct bt_ctf_packet *writer_packet);
+
 /*
  * Create and return a copy of the event passed in parameter. The caller has to
  * append it to the writer_stream.
This page took 0.03631 seconds and 4 git commands to generate.