lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / trace-ir / stream.h
index 3ed0205e7866ae6711612ab1b46a9077ebf0bd6c..71d2171469d63e1adf93b3d048cc07d307778948 100644 (file)
@@ -2,10 +2,9 @@
 #define BABELTRACE_TRACE_IR_STREAM_H
 
 /*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2013, 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
  * http://www.efficios.com/ctf
  */
 
+/* For bt_trace, bt_stream, bt_stream_class */
+#include <babeltrace/types.h>
+
+/* For bt_stream_status */
+#include <babeltrace/trace-ir/stream-const.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_stream;
-struct bt_stream_class;
+extern bt_stream *bt_stream_create(bt_stream_class *stream_class,
+               bt_trace *trace);
+
+extern bt_stream *bt_stream_create_with_id(
+               bt_stream_class *stream_class,
+               bt_trace *trace, uint64_t id);
 
-extern struct bt_stream_class *bt_stream_borrow_class(struct bt_stream *stream);
+extern bt_trace *bt_stream_borrow_trace(bt_stream *stream);
 
-extern const char *bt_stream_get_name(struct bt_stream *stream);
+extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream);
 
-extern uint64_t bt_stream_get_id(struct bt_stream *stream);
+extern bt_stream_status bt_stream_set_name(bt_stream *stream,
+               const char *name);
 
 #ifdef __cplusplus
 }
This page took 0.023577 seconds and 4 git commands to generate.