lib: make trace IR API const-correct
[babeltrace.git] / include / babeltrace / trace-ir / trace.h
index 9a1115cb797fc913a974314f40fc7e16d3dcd177..370a89b34906b5d85e770a834df704b7d47ac2dc 100644 (file)
@@ -42,27 +42,26 @@ struct bt_stream;
 struct bt_stream_class;
 struct bt_field_class;
 struct bt_value;
+struct bt_packet_header_field;
 
-extern bt_bool bt_trace_assigns_automatic_stream_class_id(
-               struct bt_trace *trace);
+extern struct bt_trace *bt_trace_create(void);
 
-extern const char *bt_trace_get_name(struct bt_trace *trace);
+extern void bt_trace_set_assigns_automatic_stream_class_id(
+               struct bt_trace *trace, bt_bool value);
 
-extern bt_uuid bt_trace_get_uuid(struct bt_trace *trace);
+extern int bt_trace_set_name(struct bt_trace *trace, const char *name);
 
-extern uint64_t bt_trace_get_environment_entry_count(struct bt_trace *trace);
+extern void bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid);
 
-extern void bt_trace_borrow_environment_entry_by_index(
-               struct bt_trace *trace, uint64_t index,
-               const char **name, const struct bt_value **value);
+extern int bt_trace_set_environment_entry_integer(struct bt_trace *trace,
+               const char *name, int64_t value);
 
-extern const struct bt_value *bt_trace_borrow_environment_entry_value_by_name(
-               struct bt_trace *trace, const char *name);
+extern int bt_trace_set_environment_entry_string(struct bt_trace *trace,
+               const char *name, const char *value);
 
-extern struct bt_field_class *bt_trace_borrow_packet_header_field_class(
-               struct bt_trace *trace);
-
-extern uint64_t bt_trace_get_stream_class_count(struct bt_trace *trace);
+extern int bt_trace_set_packet_header_field_class(
+               struct bt_trace *trace,
+               struct bt_field_class *packet_header_field_class);
 
 extern struct bt_stream_class *bt_trace_borrow_stream_class_by_index(
                struct bt_trace *trace, uint64_t index);
@@ -70,15 +69,13 @@ extern struct bt_stream_class *bt_trace_borrow_stream_class_by_index(
 extern struct bt_stream_class *bt_trace_borrow_stream_class_by_id(
                struct bt_trace *trace, uint64_t id);
 
-extern uint64_t bt_trace_get_stream_count(struct bt_trace *trace);
-
-extern struct bt_stream *bt_trace_borrow_stream_by_index(
-               struct bt_trace *trace, uint64_t index);
+extern struct bt_stream *bt_trace_borrow_stream_by_index(struct bt_trace *trace,
+               uint64_t index);
 
-extern struct bt_stream *bt_trace_borrow_stream_by_id(
-               struct bt_trace *trace, uint64_t id);
+extern struct bt_stream *bt_trace_borrow_stream_by_id(struct bt_trace *trace,
+               uint64_t id);
 
-extern bt_bool bt_trace_is_static(struct bt_trace *trace);
+extern int bt_trace_make_static(struct bt_trace *trace);
 
 #ifdef __cplusplus
 }
This page took 0.023971 seconds and 4 git commands to generate.