Implement LttvTracesetPosition
[lttv.git] / lttv / lttv / traceset.h
index 9d62687686e0b19a4cc8691379d24de88ea75722..65be5efe3507e92179949af504ead3ec0b46aa9f 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 {
@@ -57,6 +56,7 @@ struct _LttvTrace {
 /* In babeltrace, the position concept is an iterator. */
 struct _LttvTracesetPosition {
        struct bt_ctf_iter *iter;
+       struct bt_iter_pos *bt_pos;
 };
 
 /* Tracesets may be added to, removed from and their content listed. */
@@ -85,18 +85,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.023317 seconds and 4 git commands to generate.