-#ifndef BABELTRACE2_TRACE_IR_STREAM_H
-#define BABELTRACE2_TRACE_IR_STREAM_H
-
/*
- * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
- *
- * 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
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
+ * SPDX-License-Identifier: MIT
*
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
*/
+#ifndef BABELTRACE2_TRACE_IR_STREAM_H
+#define BABELTRACE2_TRACE_IR_STREAM_H
+
+/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
+
#ifndef __BT_IN_BABELTRACE_H
# error "Please include <babeltrace2/babeltrace.h> instead."
#endif
\ref api-tir-clock-cls-origin "correlatable".
A typical use case for streams is to use one for each traced CPU. Then
-the messages related to a given stream are the ones which occured on a
+the messages related to a given stream are the ones which occurred on a
given CPU. Other schemes are possible: they are completely
application-specific, and \bt_name does not enforce any specific
stream arrangement pattern.
stream's default clock.
In other words, a default clock snapshot contains the value of the
- stream's default clock when this message occured.
+ stream's default clock when this message occurred.
To create a stream:
trace.
*/
extern bt_stream *bt_stream_create(bt_stream_class *stream_class,
- bt_trace *trace);
+ bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
*/
extern bt_stream *bt_stream_create_with_id(
bt_stream_class *stream_class,
- bt_trace *trace, uint64_t id);
+ bt_trace *trace, uint64_t id) __BT_NOEXCEPT;
/*! @} */
@sa bt_stream_borrow_class_const() —
\c const version of this function.
*/
-extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream);
+extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief
See bt_stream_borrow_class().
*/
extern const bt_stream_class *bt_stream_borrow_class_const(
- const bt_stream *stream);
+ const bt_stream *stream) __BT_NOEXCEPT;
/*! @} */
@sa bt_stream_borrow_trace_const() —
\c const version of this function.
*/
-extern bt_trace *bt_stream_borrow_trace(bt_stream *stream);
+extern bt_trace *bt_stream_borrow_trace(bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief
See bt_stream_borrow_trace().
*/
extern const bt_trace *bt_stream_borrow_trace_const(
- const bt_stream *stream);
+ const bt_stream *stream) __BT_NOEXCEPT;
/*! @} */
Creates a stream with a specific numeric ID and adds it to a
trace.
*/
-extern uint64_t bt_stream_get_id(const bt_stream *stream);
+extern uint64_t bt_stream_get_id(const bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief
Returns the name of a stream.
*/
extern bt_stream_set_name_status bt_stream_set_name(bt_stream *stream,
- const char *name);
+ const char *name) __BT_NOEXCEPT;
/*!
@brief
@sa bt_stream_class_set_name() —
Sets the name of a stream.
*/
-extern const char *bt_stream_get_name(const bt_stream *stream);
+extern const char *bt_stream_get_name(const bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief
Borrows the user attributes of a stream.
*/
extern void bt_stream_set_user_attributes(
- bt_stream *stream, const bt_value *user_attributes);
+ bt_stream *stream, const bt_value *user_attributes)
+ __BT_NOEXCEPT;
/*!
@brief
@sa bt_stream_borrow_user_attributes_const() —
\c const version of this function.
*/
-extern bt_value *bt_stream_borrow_user_attributes(bt_stream *stream);
+extern bt_value *bt_stream_borrow_user_attributes(bt_stream *stream)
+ __BT_NOEXCEPT;
/*!
@brief
See bt_stream_borrow_user_attributes().
*/
extern const bt_value *bt_stream_borrow_user_attributes_const(
- const bt_stream *stream);
+ const bt_stream *stream) __BT_NOEXCEPT;
/*! @} */
@sa bt_stream_put_ref() —
Decrements the reference count of a stream.
*/
-extern void bt_stream_get_ref(const bt_stream *stream);
+extern void bt_stream_get_ref(const bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief
@sa bt_stream_get_ref() —
Increments the reference count of a stream.
*/
-extern void bt_stream_put_ref(const bt_stream *stream);
+extern void bt_stream_put_ref(const bt_stream *stream) __BT_NOEXCEPT;
/*!
@brief