Add a copy method to the trace chunk interface
[lttng-tools.git] / src / common / trace-chunk.h
index 8703d00444df7837069fdc54dc7fb68926456bf5..41c50b637661f5470a4866e317b2edb07ca072f4 100644 (file)
@@ -83,6 +83,15 @@ struct lttng_trace_chunk *lttng_trace_chunk_create(
                uint64_t chunk_id,
                time_t chunk_creation_time);
 
+/*
+ * Copy a trace chunk. The copy that is returned is always a _user_
+ * mode chunk even if the source chunk was an _owner_ as there can never be
+ * two _owners_ of the same trace output.
+ */
+LTTNG_HIDDEN
+struct lttng_trace_chunk *lttng_trace_chunk_copy(
+               struct lttng_trace_chunk *source_chunk);
+
 LTTNG_HIDDEN
 enum lttng_trace_chunk_status lttng_trace_chunk_get_id(
                struct lttng_trace_chunk *chunk, uint64_t *id);
This page took 0.023346 seconds and 4 git commands to generate.