@sa bt_port_is_output() —
Returns whether or not a port is an \bt_oport.
*/
-extern bt_port_type bt_port_get_type(const bt_port *port);
+extern bt_port_type bt_port_get_type(const bt_port *port) __BT_NOEXCEPT;
/*!
@brief
Returns the type enumerator of a port.
*/
static inline
-bt_bool bt_port_is_input(const bt_port *port)
+bt_bool bt_port_is_input(const bt_port *port) __BT_NOEXCEPT
{
return bt_port_get_type(port) == BT_PORT_TYPE_INPUT;
}
Returns the type enumerator of a port.
*/
static inline
-bt_bool bt_port_is_output(const bt_port *port)
+bt_bool bt_port_is_output(const bt_port *port) __BT_NOEXCEPT
{
return bt_port_get_type(port) == BT_PORT_TYPE_OUTPUT;
}
@bt_pre_not_null{port}
*/
extern const bt_connection *bt_port_borrow_connection_const(
- const bt_port *port);
+ const bt_port *port) __BT_NOEXCEPT;
/*! @} */
@bt_pre_not_null{port}
*/
extern const bt_component *bt_port_borrow_component_const(
- const bt_port *port);
+ const bt_port *port) __BT_NOEXCEPT;
/*! @} */
@bt_pre_not_null{port}
*/
-extern const char *bt_port_get_name(const bt_port *port);
+extern const char *bt_port_get_name(const bt_port *port) __BT_NOEXCEPT;
/*!
@brief
@bt_pre_not_null{port}
*/
-extern bt_bool bt_port_is_connected(const bt_port *port);
+extern bt_bool bt_port_is_connected(const bt_port *port) __BT_NOEXCEPT;
/*! @} */
@sa bt_port_put_ref() —
Decrements the reference count of a port.
*/
-extern void bt_port_get_ref(const bt_port *port);
+extern void bt_port_get_ref(const bt_port *port) __BT_NOEXCEPT;
/*!
@brief
@sa bt_port_get_ref() —
Increments the reference count of a port.
*/
-extern void bt_port_put_ref(const bt_port *port);
+extern void bt_port_put_ref(const bt_port *port) __BT_NOEXCEPT;
/*!
@brief
\bt_p{port} as a common port.
*/
static inline
-const bt_port *bt_port_input_as_port_const(const bt_port_input *port)
+const bt_port *bt_port_input_as_port_const(
+ const bt_port_input *port) __BT_NOEXCEPT
{
return __BT_UPCAST_CONST(bt_port, port);
}
@sa bt_port_input_put_ref() —
Decrements the reference count of an input port.
*/
-extern void bt_port_input_get_ref(const bt_port_input *port);
+extern void bt_port_input_get_ref(const bt_port_input *port) __BT_NOEXCEPT;
/*!
@brief
@sa bt_port_input_get_ref() —
Increments the reference count of an input port.
*/
-extern void bt_port_input_put_ref(const bt_port_input *port);
+extern void bt_port_input_put_ref(const bt_port_input *port) __BT_NOEXCEPT;
/*!
@brief
\bt_p{port} as a common port.
*/
static inline
-const bt_port *bt_port_output_as_port_const(const bt_port_output *port)
+const bt_port *bt_port_output_as_port_const(
+ const bt_port_output *port) __BT_NOEXCEPT
{
return __BT_UPCAST_CONST(bt_port, port);
}
@sa bt_port_output_put_ref() —
Decrements the reference count of a \bt_oport.
*/
-extern void bt_port_output_get_ref(const bt_port_output *port);
+extern void bt_port_output_get_ref(const bt_port_output *port) __BT_NOEXCEPT;
/*!
@brief
@sa bt_port_output_get_ref() —
Increments the reference count of a \bt_oport.
*/
-extern void bt_port_output_put_ref(const bt_port_output *port);
+extern void bt_port_output_put_ref(const bt_port_output *port) __BT_NOEXCEPT;
/*!
@brief