axl_bool vortex_connection_add_channel_common ( VortexConnection connection,
VortexChannel channel,
axl_bool  do_notify 
)

Adds a VortexChannel into an existing VortexConnection, allowing to configure notification.

The channel to be added must not exists inside connection, otherwise an error will be produced and channel will not be added.

This function only adds the data structure which represents a channel. It doesn't make any work about beep channel starting or something similar.

Mainly, this function is only useful for internal vortex library purposes.

Parameters
connectionthe connection where channel will be added.
channelthe channel to add.
do_notifyaxl_true to fire handlers configured at vortex_connection_set_channel_added_handler otherwise, this notification is not done.

References vortex_channel_get_number(), vortex_hash_lookup(), vortex_hash_replace(), vortex_mutex_lock(), vortex_mutex_unlock(), and VortexRoleMasterListener.

Referenced by vortex_connection_add_channel().