lib: update copyrights
[babeltrace.git] / include / babeltrace / trace-ir / trace.h
index a2a05202eaea791e639ee1f024155ba2d5ea3a0f..33c038f8c74a8f12752cb4b9ab6f8a7e9fd40962 100644 (file)
@@ -2,10 +2,9 @@
 #define BABELTRACE_TRACE_IR_TRACE_H
 
 /*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
  * 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,7 +27,7 @@
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool, bt_uuid */
+/* For bt_bool */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
@@ -38,47 +37,22 @@ extern "C" {
 #endif
 
 struct bt_trace;
+struct bt_trace_class;
 struct bt_stream;
-struct bt_stream_class;
-struct bt_field_class;
-struct bt_value;
-
-extern bt_bool bt_trace_assigns_automatic_stream_class_id(
-               struct bt_trace *trace);
-
-extern const char *bt_trace_get_name(struct bt_trace *trace);
-
-extern bt_uuid bt_trace_get_uuid(struct bt_trace *trace);
-
-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);
-
-extern struct bt_value *bt_trace_borrow_environment_entry_value_by_name(
-               struct bt_trace *trace, const char *name);
-
-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 struct bt_stream_class *bt_trace_borrow_stream_class_by_index(
-               struct bt_trace *trace, uint64_t index);
+extern struct bt_trace_class *bt_trace_borrow_class(struct bt_trace *trace);
 
-extern struct bt_stream_class *bt_trace_borrow_stream_class_by_id(
-               struct bt_trace *trace, uint64_t id);
+extern struct bt_trace *bt_trace_create(struct bt_trace_class *trace_class);
 
-extern uint64_t bt_trace_get_stream_count(struct bt_trace *trace);
+extern int bt_trace_set_name(struct bt_trace *trace, const char *name);
 
-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.023811 seconds and 4 git commands to generate.