X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Ftrace.h;h=36565dfc5e1e0b0bded876e1c11e8ca4f4905b9f;hb=2e90378a2b94006e2743b06e7fe7a1f0e691a56e;hp=370a89b34906b5d85e770a834df704b7d47ac2dc;hpb=40f4ba76dd6f9508ca51b6220eaed57632281a07;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/trace.h b/include/babeltrace/trace-ir/trace.h index 370a89b3..36565dfc 100644 --- a/include/babeltrace/trace-ir/trace.h +++ b/include/babeltrace/trace-ir/trace.h @@ -2,10 +2,9 @@ #define BABELTRACE_TRACE_IR_TRACE_H /* + * Copyright 2017-2018 Philippe Proulx * Copyright 2014 Jérémie Galarneau * - * Author: Jérémie Galarneau - * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -28,55 +27,31 @@ * http://www.efficios.com/ctf */ -/* For bt_bool, bt_uuid */ +/* For bt_bool, bt_trace, bt_trace_class, bt_stream */ #include +/* For bt_trace_status */ +#include + #include #ifdef __cplusplus extern "C" { #endif -struct bt_trace; -struct bt_stream; -struct bt_stream_class; -struct bt_field_class; -struct bt_value; -struct bt_packet_header_field; - -extern struct bt_trace *bt_trace_create(void); - -extern void bt_trace_set_assigns_automatic_stream_class_id( - struct bt_trace *trace, bt_bool value); - -extern int bt_trace_set_name(struct bt_trace *trace, const char *name); +extern bt_trace_class *bt_trace_borrow_class(bt_trace *trace); -extern void bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid); +extern bt_trace *bt_trace_create(bt_trace_class *trace_class); -extern int bt_trace_set_environment_entry_integer(struct bt_trace *trace, - const char *name, int64_t value); +extern bt_trace_status bt_trace_set_name(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 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); - -extern struct bt_stream_class *bt_trace_borrow_stream_class_by_id( - struct bt_trace *trace, uint64_t id); - -extern struct bt_stream *bt_trace_borrow_stream_by_index(struct bt_trace *trace, +extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace, uint64_t index); -extern struct bt_stream *bt_trace_borrow_stream_by_id(struct bt_trace *trace, +extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace, uint64_t id); -extern int bt_trace_make_static(struct bt_trace *trace); - #ifdef __cplusplus } #endif