@returns
New trace reference, or \c NULL on memory error.
*/
-extern bt_trace *bt_trace_create(bt_trace_class *trace_class);
+extern bt_trace *bt_trace_create(bt_trace_class *trace_class) __BT_NOEXCEPT;
/*! @} */
@sa bt_trace_borrow_class_const() —
\c const version of this function.
*/
-extern bt_trace_class *bt_trace_borrow_class(bt_trace *trace);
+extern bt_trace_class *bt_trace_borrow_class(bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
See bt_trace_borrow_class().
*/
extern const bt_trace_class *bt_trace_borrow_class_const(
- const bt_trace *trace);
+ const bt_trace *trace) __BT_NOEXCEPT;
/*! @} */
@bt_pre_not_null{trace}
*/
-extern uint64_t bt_trace_get_stream_count(const bt_trace *trace);
+extern uint64_t bt_trace_get_stream_count(const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
\c const version of this function.
*/
extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace,
- uint64_t index);
+ uint64_t index) __BT_NOEXCEPT;
/*!
@brief
See bt_trace_borrow_stream_by_index().
*/
extern const bt_stream *bt_trace_borrow_stream_by_index_const(
- const bt_trace *trace, uint64_t index);
+ const bt_trace *trace, uint64_t index) __BT_NOEXCEPT;
/*!
@brief
\c const version of this function.
*/
extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace,
- uint64_t id);
+ uint64_t id) __BT_NOEXCEPT;
/*!
@brief
See bt_trace_borrow_stream_by_id().
*/
extern const bt_stream *bt_trace_borrow_stream_by_id_const(
- const bt_trace *trace, uint64_t id);
+ const bt_trace *trace, uint64_t id) __BT_NOEXCEPT;
/*! @} */
Returns the name of a trace.
*/
extern bt_trace_set_name_status bt_trace_set_name(bt_trace *trace,
- const char *name);
+ const char *name) __BT_NOEXCEPT;
/*!
@brief
@sa bt_trace_set_name() —
Sets the name of a trace.
*/
-extern const char *bt_trace_get_name(const bt_trace *trace);
+extern const char *bt_trace_get_name(const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
@sa bt_trace_get_uuid() —
Returns the UUID of a trace.
*/
-extern void bt_trace_set_uuid(bt_trace *trace, bt_uuid uuid);
+extern void bt_trace_set_uuid(bt_trace *trace, bt_uuid uuid) __BT_NOEXCEPT;
/*!
@brief
@sa bt_trace_set_uuid() —
Sets the UUID of a trace.
*/
-extern bt_uuid bt_trace_get_uuid(const bt_trace *trace);
+extern bt_uuid bt_trace_get_uuid(const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
*/
extern bt_trace_set_environment_entry_status
bt_trace_set_environment_entry_integer(bt_trace *trace, const char *name,
- int64_t value);
+ int64_t value) __BT_NOEXCEPT;
/*!
@brief
*/
extern bt_trace_set_environment_entry_status
bt_trace_set_environment_entry_string(bt_trace *trace, const char *name,
- const char *value);
+ const char *value) __BT_NOEXCEPT;
/*!
@brief
@bt_pre_not_null{trace}
*/
-extern uint64_t bt_trace_get_environment_entry_count(const bt_trace *trace);
+extern uint64_t bt_trace_get_environment_entry_count(
+ const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
*/
extern void bt_trace_borrow_environment_entry_by_index_const(
const bt_trace *trace, uint64_t index,
- const char **name, const bt_value **value);
+ const char **name, const bt_value **value) __BT_NOEXCEPT;
/*!
@brief
@bt_pre_not_null{name}
*/
extern const bt_value *bt_trace_borrow_environment_entry_value_by_name_const(
- const bt_trace *trace, const char *name);
+ const bt_trace *trace, const char *name) __BT_NOEXCEPT;
/*!
@brief
Borrows the user attributes of a trace.
*/
extern void bt_trace_set_user_attributes(
- bt_trace *trace, const bt_value *user_attributes);
+ bt_trace *trace, const bt_value *user_attributes) __BT_NOEXCEPT;
/*!
@brief
@sa bt_trace_borrow_user_attributes_const() —
\c const version of this function.
*/
-extern bt_value *bt_trace_borrow_user_attributes(bt_trace *trace);
+extern bt_value *bt_trace_borrow_user_attributes(bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
See bt_trace_borrow_user_attributes().
*/
extern const bt_value *bt_trace_borrow_user_attributes_const(
- const bt_trace *trace);
+ const bt_trace *trace) __BT_NOEXCEPT;
/*! @} */
extern bt_trace_add_listener_status bt_trace_add_destruction_listener(
const bt_trace *trace,
bt_trace_destruction_listener_func user_func,
- void *user_data, bt_listener_id *listener_id);
+ void *user_data, bt_listener_id *listener_id) __BT_NOEXCEPT;
/*!
@brief
Adds a destruction listener to a trace.
*/
extern bt_trace_remove_listener_status bt_trace_remove_destruction_listener(
- const bt_trace *trace, bt_listener_id listener_id);
+ const bt_trace *trace, bt_listener_id listener_id)
+ __BT_NOEXCEPT;
/*! @} */
@sa bt_trace_put_ref() —
Decrements the reference count of a trace.
*/
-extern void bt_trace_get_ref(const bt_trace *trace);
+extern void bt_trace_get_ref(const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief
@sa bt_trace_get_ref() —
Increments the reference count of a trace.
*/
-extern void bt_trace_put_ref(const bt_trace *trace);
+extern void bt_trace_put_ref(const bt_trace *trace) __BT_NOEXCEPT;
/*!
@brief