X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftrace-ir%2Ftrace.h;h=fcbf43f072e11f2ebfc584fdde8121d24abae6d7;hb=924dc299c8a893e92fcd985fa05c245b591ef314;hp=c759ca63f545b343cbe7a1552768471ffda21054;hpb=d24d56638469189904fb6ddbb3c725817b3e9417;p=babeltrace.git diff --git a/include/babeltrace2/trace-ir/trace.h b/include/babeltrace2/trace-ir/trace.h index c759ca63..fcbf43f0 100644 --- a/include/babeltrace2/trace-ir/trace.h +++ b/include/babeltrace2/trace-ir/trace.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_TRACE_IR_TRACE_H -#define BABELTRACE_TRACE_IR_TRACE_H +#ifndef BABELTRACE2_TRACE_IR_TRACE_H +#define BABELTRACE2_TRACE_IR_TRACE_H /* * Copyright 2017-2018 Philippe Proulx @@ -29,7 +29,7 @@ #include -/* For bt_bool, bt_trace, bt_trace_class, bt_stream */ +/* For bt_bool, bt_uuid, bt_trace, bt_trace_class, bt_stream */ #include /* For __BT_FUNC_STATUS_* */ @@ -53,6 +53,21 @@ typedef enum bt_trace_set_name_status { extern bt_trace_set_name_status bt_trace_set_name(bt_trace *trace, const char *name); +extern void bt_trace_set_uuid(bt_trace *trace, bt_uuid uuid); + +typedef enum bt_trace_set_environment_entry_status { + BT_TRACE_SET_ENVIRONMENT_ENTRY_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR, + BT_TRACE_SET_ENVIRONMENT_ENTRY_STATUS_OK = __BT_FUNC_STATUS_OK, +} bt_trace_set_environment_entry_status; + +extern bt_trace_set_environment_entry_status +bt_trace_set_environment_entry_integer(bt_trace *trace, const char *name, + int64_t value); + +extern bt_trace_set_environment_entry_status +bt_trace_set_environment_entry_string(bt_trace *trace, const char *name, + const char *value); + extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace, uint64_t index); @@ -65,4 +80,4 @@ extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace, #include -#endif /* BABELTRACE_TRACE_IR_TRACE_H */ +#endif /* BABELTRACE2_TRACE_IR_TRACE_H */