LttvAttribute *a;
LttvHooks *event_hooks;
struct bt_ctf_iter *iter;
- LttvTraceState *tmpState;
-
+ GPtrArray *state_trace_handle_index;
};
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. */
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);