X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Ftraceset.h;h=6bce443cf317e291bbc9bf8ed192b5d8921f3473;hb=2bc1bcfb0fdff52b3350804d2824cd023f463f96;hp=7ef85be5c337a67bb195d59660447101b6d6211a;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/lttv/traceset.h b/lttv/lttv/traceset.h index 7ef85be5..6bce443c 100644 --- a/lttv/lttv/traceset.h +++ b/lttv/lttv/traceset.h @@ -29,18 +29,25 @@ typedef struct _LttvTraceset LttvTraceset; typedef struct _LttvTrace LttvTrace; +struct bt_context; + /* Tracesets may be added to, removed from and their content listed. */ LttvTraceset *lttv_traceset_new(); char * lttv_traceset_name(LttvTraceset * s); +#ifdef BABEL_CLEANUP LttvTrace *lttv_trace_new(LttTrace *t); +#endif LttvTraceset *lttv_traceset_copy(LttvTraceset *s_orig); LttvTraceset *lttv_traceset_load(const gchar *filename); +struct bt_context *lttv_traceset_get_context(LttvTraceset *s); + + gint lttv_traceset_save(LttvTraceset *s); void lttv_traceset_destroy(LttvTraceset *s); @@ -49,6 +56,20 @@ void lttv_trace_destroy(LttvTrace *t); void lttv_traceset_add(LttvTraceset *s, LttvTrace *t); +/* + * lttv_traceset_add_path : Add all traces recursively to a traceset + * + * 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 + * + * @return 0 on success, -1 on failure + */ +int lttv_traceset_add_path(LttvTraceset *ts, const char *path); + unsigned lttv_traceset_number(LttvTraceset *s); LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); @@ -61,7 +82,9 @@ LttvAttribute *lttv_traceset_attribute(LttvTraceset *s); LttvAttribute *lttv_trace_attribute(LttvTrace *t); +#ifdef BABEL_CLEANUP LttTrace *lttv_trace(LttvTrace *t); +#endif guint lttv_trace_get_ref_number(LttvTrace * t);