X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Ftrace.h;h=9a1115cb797fc913a974314f40fc7e16d3dcd177;hb=05e2128659970c32648a01255ed870449f05d518;hp=cb340638e261a1449eb539f62ba93e4cb5278870;hpb=56e18c4ce186892c36d7f2cb5078087425e60134;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/trace.h b/include/babeltrace/trace-ir/trace.h index cb340638..9a1115cb 100644 --- a/include/babeltrace/trace-ir/trace.h +++ b/include/babeltrace/trace-ir/trace.h @@ -2,8 +2,6 @@ #define BABELTRACE_TRACE_IR_TRACE_H /* - * BabelTrace - Trace IR: Trace - * * Copyright 2014 Jérémie Galarneau * * Author: Jérémie Galarneau @@ -42,55 +40,28 @@ extern "C" { struct bt_trace; struct bt_stream; struct bt_stream_class; -struct bt_field_type; +struct bt_field_class; struct bt_value; -struct bt_packet_header_field; - -typedef void (* bt_trace_is_static_listener)( - struct bt_trace *trace, void *data); - -typedef void (* bt_trace_listener_removed)( - struct bt_trace *trace, void *data); - -extern struct bt_trace *bt_trace_create(void); extern bt_bool bt_trace_assigns_automatic_stream_class_id( struct bt_trace *trace); -extern int bt_trace_set_assigns_automatic_stream_class_id( - struct bt_trace *trace, bt_bool value); - extern const char *bt_trace_get_name(struct bt_trace *trace); -extern int bt_trace_set_name(struct bt_trace *trace, const char *name); - extern bt_uuid bt_trace_get_uuid(struct bt_trace *trace); -extern int bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid); - extern uint64_t bt_trace_get_environment_entry_count(struct bt_trace *trace); extern void bt_trace_borrow_environment_entry_by_index( struct bt_trace *trace, uint64_t index, - const char **name, struct bt_value **value); + const char **name, const struct bt_value **value); -extern struct bt_value *bt_trace_borrow_environment_entry_value_by_name( +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_integer( - struct bt_trace *trace, const char *name, - int64_t value); - -extern int bt_trace_set_environment_entry_string( - struct bt_trace *trace, const char *name, - const char *value); - -extern struct bt_field_type *bt_trace_borrow_packet_header_field_type( +extern struct bt_field_class *bt_trace_borrow_packet_header_field_class( struct bt_trace *trace); -extern int bt_trace_set_packet_header_field_type(struct bt_trace *trace, - struct bt_field_type *packet_header_type); - extern uint64_t bt_trace_get_stream_class_count(struct bt_trace *trace); extern struct bt_stream_class *bt_trace_borrow_stream_class_by_index( @@ -109,17 +80,6 @@ extern struct bt_stream *bt_trace_borrow_stream_by_id( extern bt_bool bt_trace_is_static(struct bt_trace *trace); -extern int bt_trace_make_static(struct bt_trace *trace); - -extern int bt_trace_add_is_static_listener( - struct bt_trace *trace, - bt_trace_is_static_listener listener, - bt_trace_listener_removed listener_removed, void *data, - uint64_t *listener_id); - -extern int bt_trace_remove_is_static_listener( - struct bt_trace *trace, uint64_t listener_id); - #ifdef __cplusplus } #endif