Manage state correctly with multiple open trace
[lttv.git] / lttv / lttv / traceset.h
index 9d62687686e0b19a4cc8691379d24de88ea75722..b58ca27cc317f010f681ad34d8e42249c3ff10ef 100644 (file)
@@ -41,8 +41,7 @@ struct _LttvTraceset {
        LttvAttribute *a;
        LttvHooks *event_hooks;
        struct bt_ctf_iter *iter;
-  LttvTraceState *tmpState;
-
+       GPtrArray *state_trace_handle_index;
 };
 
 struct _LttvTrace {
@@ -85,18 +84,16 @@ void lttv_traceset_destroy(LttvTraceset *s);
 void lttv_traceset_add(LttvTraceset *s, LttvTrace *t);
 
 /*
- * lttv_traceset_add_path : Add all traces recursively to a traceset
+ * lttv_trace_create : Add all traces recursively to a traceset from a path
  *
  * ts is the traceset in which will be contained the traces
  *
- * path is a path to a trace(s). It cannot be NULL and it is not parse
- * recursively.
- * todo mdenis: implement algorithm to go through all folders recursively to
- * find all traces in the path
+ * trace_path is the path where to find a set of trace.
+ * Traverse the path recursively to add all traces within.
  *
- * @return 0 on success, -1 on failure
+ * return 0 on success or a negative integer on failure
  */
-int lttv_traceset_add_path(LttvTraceset *ts, const char *path);
+int lttv_traceset_add_path(LttvTraceset *ts, char *path);
 
 unsigned lttv_traceset_number(LttvTraceset *s);
 
This page took 0.024165 seconds and 4 git commands to generate.