Enable support for opening multiple trace
[lttv.git] / lttv / lttv / traceset.h
index 5d57ca44ef1f7e8aa56917a37e9adc72c684de5d..4f326fd8286adace26304ee19a80aae7ffda6e4e 100644 (file)
@@ -45,8 +45,11 @@ struct _LttvTraceset {
        GPtrArray *state_trace_handle_index;
        gboolean has_precomputed_states;
        TimeInterval time_span;
+       char *common_path;
 };
 
+#define TRACE_NAME_SIZE 100
+
 struct _LttvTrace {
        // Trace id for babeltrace
        LttvTraceset *traceset;         /* container traceset */
@@ -54,6 +57,8 @@ struct _LttvTrace {
        LttvAttribute *a;
        guint ref_count;
        LttvTraceState *state;
+       char short_name[TRACE_NAME_SIZE];
+       char *full_path;
 };
 
 /* In babeltrace, the position concept is an iterator. */
@@ -111,6 +116,10 @@ LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i);
 
 void lttv_traceset_remove(LttvTraceset *s, unsigned i);
 
+int lttv_traceset_get_trace_index_from_event(LttvEvent *event);
+
+int lttv_traceset_get_trace_index_from_handle_id(LttvTraceset *ts, int handle_id);
+
 /* An attributes table is attached to the set and to each trace in the set. */
 
 LttvAttribute *lttv_traceset_attribute(LttvTraceset *s);
This page took 0.022928 seconds and 4 git commands to generate.