X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Ftrace.h;h=d00570e39affb2a759c47c6c316683da71e9face;hb=b19ff26f04df428047676dd736bd7cc9473906fe;hp=33c038f8c74a8f12752cb4b9ab6f8a7e9fd40962;hpb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/trace.h b/include/babeltrace/trace-ir/trace.h index 33c038f8..d00570e3 100644 --- a/include/babeltrace/trace-ir/trace.h +++ b/include/babeltrace/trace-ir/trace.h @@ -27,7 +27,7 @@ * http://www.efficios.com/ctf */ -/* For bt_bool */ +/* For bt_bool, bt_trace, bt_trace_class, bt_stream */ #include #include @@ -36,23 +36,19 @@ extern "C" { #endif -struct bt_trace; -struct bt_trace_class; -struct bt_stream; +extern bt_trace_class *bt_trace_borrow_class(bt_trace *trace); -extern struct bt_trace_class *bt_trace_borrow_class(struct bt_trace *trace); +extern bt_trace *bt_trace_create(bt_trace_class *trace_class); -extern struct bt_trace *bt_trace_create(struct bt_trace_class *trace_class); +extern int bt_trace_set_name(bt_trace *trace, const char *name); -extern int bt_trace_set_name(struct bt_trace *trace, const char *name); - -extern struct bt_stream *bt_trace_borrow_stream_by_index(struct bt_trace *trace, +extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace, uint64_t index); -extern struct bt_stream *bt_trace_borrow_stream_by_id(struct bt_trace *trace, +extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace, uint64_t id); -extern int bt_trace_make_static(struct bt_trace *trace); +extern int bt_trace_make_static(bt_trace *trace); #ifdef __cplusplus }