#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
extern "C" {
#endif
+struct bt_trace;
struct bt_stream;
struct bt_stream_class;
-extern struct bt_stream_class *bt_stream_borrow_class(struct bt_stream *stream);
+extern struct bt_stream *bt_stream_create(struct bt_stream_class *stream_class,
+ struct bt_trace *trace);
+
+extern struct bt_stream *bt_stream_create_with_id(
+ struct bt_stream_class *stream_class,
+ struct bt_trace *trace, uint64_t id);
-extern const char *bt_stream_get_name(struct bt_stream *stream);
+extern struct bt_trace *bt_stream_borrow_trace(struct bt_stream *stream);
+
+extern struct bt_stream_class *bt_stream_borrow_class(struct bt_stream *stream);
-extern uint64_t bt_stream_get_id(struct bt_stream *stream);
+extern int bt_stream_set_name(struct bt_stream *stream, const char *name);
#ifdef __cplusplus
}