lib: make values API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / private-trace.h
index c771ad74dcc237e801c9bab24c68680e20d96ef7..1336082e0294985690cdc5c044a3115a7b2a3739 100644 (file)
@@ -42,7 +42,7 @@ struct bt_private_trace;
 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)(
@@ -52,7 +52,7 @@ typedef void (* bt_private_trace_listener_removed)(
        struct bt_private_trace *trace, void *data);
 
 static inline
-struct bt_trace *bt_private_trace_borrow_trace(
+struct bt_trace *bt_private_trace_as_trace(
                struct bt_private_trace *priv_trace)
 {
        return (void *) priv_trace;
@@ -60,20 +60,20 @@ struct bt_trace *bt_private_trace_borrow_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);
 
This page took 0.025994 seconds and 4 git commands to generate.