@bt_pre_not_null{self_component}
*/
-extern bt_clock_class *bt_clock_class_create(bt_self_component *self_component);
+extern bt_clock_class *bt_clock_class_create(bt_self_component *self_component)
+ __BT_NOEXCEPT;
/*! @} */
Returns the frequency of a clock class.
*/
extern void bt_clock_class_set_frequency(bt_clock_class *clock_class,
- uint64_t frequency);
+ uint64_t frequency) __BT_NOEXCEPT;
/*!
@brief
Sets the frequency of a clock class.
*/
extern uint64_t bt_clock_class_get_frequency(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Returns the offset of a clock class.
*/
extern void bt_clock_class_set_offset(bt_clock_class *clock_class,
- int64_t offset_seconds, uint64_t offset_cycles);
+ int64_t offset_seconds, uint64_t offset_cycles) __BT_NOEXCEPT;
/*!
@brief
Sets the offset of a clock class.
*/
extern void bt_clock_class_get_offset(const bt_clock_class *clock_class,
- int64_t *offset_seconds, uint64_t *offset_cycles);
+ int64_t *offset_seconds, uint64_t *offset_cycles) __BT_NOEXCEPT;
/*!
@brief
Returns the precision of a clock class.
*/
extern void bt_clock_class_set_precision(bt_clock_class *clock_class,
- uint64_t precision);
+ uint64_t precision) __BT_NOEXCEPT;
/*!
@brief
Sets the precision of a clock class.
*/
extern uint64_t bt_clock_class_get_precision(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Unix epoch.
*/
extern void bt_clock_class_set_origin_is_unix_epoch(bt_clock_class *clock_class,
- bt_bool origin_is_unix_epoch);
+ bt_bool origin_is_unix_epoch) __BT_NOEXCEPT;
/*!
@brief
Sets whether or not the origin of a clock class is the Unix epoch.
*/
extern bt_bool bt_clock_class_origin_is_unix_epoch(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Returns the name of a clock class.
*/
extern bt_clock_class_set_name_status bt_clock_class_set_name(
- bt_clock_class *clock_class, const char *name);
+ bt_clock_class *clock_class, const char *name) __BT_NOEXCEPT;
/*!
@brief
Sets the name of a clock class.
*/
extern const char *bt_clock_class_get_name(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Returns the description of a clock class.
*/
extern bt_clock_class_set_description_status bt_clock_class_set_description(
- bt_clock_class *clock_class, const char *description);
+ bt_clock_class *clock_class, const char *description)
+ __BT_NOEXCEPT;
/*!
@brief
Sets the description of a clock class.
*/
extern const char *bt_clock_class_get_description(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Returns the UUID of a clock class.
*/
extern void bt_clock_class_set_uuid(bt_clock_class *clock_class,
- bt_uuid uuid);
+ bt_uuid uuid) __BT_NOEXCEPT;
/*!
@brief
Sets the UUID of a clock class.
*/
extern bt_uuid bt_clock_class_get_uuid(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
Borrows the user attributes of a clock class.
*/
extern void bt_clock_class_set_user_attributes(
- bt_clock_class *clock_class, const bt_value *user_attributes);
+ bt_clock_class *clock_class, const bt_value *user_attributes)
+ __BT_NOEXCEPT;
/*!
@brief
\c const version of this function.
*/
extern bt_value *bt_clock_class_borrow_user_attributes(
- bt_clock_class *clock_class);
+ bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
See bt_clock_class_borrow_user_attributes().
*/
extern const bt_value *bt_clock_class_borrow_user_attributes_const(
- const bt_clock_class *clock_class);
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*! @} */
extern bt_clock_class_cycles_to_ns_from_origin_status
bt_clock_class_cycles_to_ns_from_origin(
const bt_clock_class *clock_class,
- uint64_t value, int64_t *ns_from_origin);
+ uint64_t value, int64_t *ns_from_origin) __BT_NOEXCEPT;
/*! @} */
@sa bt_clock_class_put_ref() —
Decrements the reference count of a clock class.
*/
-extern void bt_clock_class_get_ref(const bt_clock_class *clock_class);
+extern void bt_clock_class_get_ref(
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief
@sa bt_clock_class_get_ref() —
Increments the reference count of a clock class.
*/
-extern void bt_clock_class_put_ref(const bt_clock_class *clock_class);
+extern void bt_clock_class_put_ref(
+ const bt_clock_class *clock_class) __BT_NOEXCEPT;
/*!
@brief