struct bt_private_stream;
struct bt_private_stream_class;
struct bt_private_field_class;
-struct bt_private_value;
+struct bt_value;
struct bt_private_packet_header_field;
typedef void (* bt_private_trace_is_static_listener)(
typedef void (* bt_private_trace_listener_removed)(
struct bt_private_trace *trace, void *data);
-extern struct bt_trace *bt_trace_borrow_from_private(
- struct bt_private_trace *priv_trace);
+static inline
+struct bt_trace *bt_private_trace_as_trace(
+ struct bt_private_trace *priv_trace)
+{
+ return (void *) priv_trace;
+}
extern struct bt_private_trace *bt_private_trace_create(void);
-extern int bt_private_trace_set_assigns_automatic_stream_class_id(
+extern void bt_private_trace_set_assigns_automatic_stream_class_id(
struct bt_private_trace *trace, bt_bool value);
extern int bt_private_trace_set_name(struct bt_private_trace *trace,
const char *name);
-extern int bt_private_trace_set_uuid(struct bt_private_trace *trace,
+extern void bt_private_trace_set_uuid(struct bt_private_trace *trace,
bt_uuid uuid);
extern void bt_private_trace_borrow_environment_entry_by_index(
struct bt_private_trace *trace, uint64_t index,
- const char **name, struct bt_private_value **value);
+ const char **name, const struct bt_value **value);
-extern struct bt_private_value *
+extern const struct bt_value *
bt_private_trace_borrow_environment_entry_value_by_name(
struct bt_private_trace *trace, const char *name);