lib: add aliases for Babeltrace enumeration types
[babeltrace.git] / include / babeltrace / trace-ir / stream.h
index 4e7899ebc4124bcbed7c3b88efb690b14cccde44..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_trace;
-struct bt_stream;
-struct bt_stream_class;
-
-extern struct bt_stream *bt_stream_create(struct bt_stream_class *stream_class,
-               struct bt_trace *trace);
+extern bt_stream *bt_stream_create(bt_stream_class *stream_class,
+               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 bt_stream *bt_stream_create_with_id(
+               bt_stream_class *stream_class,
+               bt_trace *trace, uint64_t id);
 
-extern struct bt_trace *bt_stream_borrow_trace(struct bt_stream *stream);
+extern bt_trace *bt_stream_borrow_trace(bt_stream *stream);
 
-extern struct bt_stream_class *bt_stream_borrow_class(struct bt_stream *stream);
+extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream);
 
-extern int bt_stream_set_name(struct bt_stream *stream, const char *name);
+extern bt_stream_status bt_stream_set_name(bt_stream *stream,
+               const char *name);
 
 #ifdef __cplusplus
 }
This page took 0.023864 seconds and 4 git commands to generate.