/* Function for sending all pending discovery events to the corresponding user modules.  */
static void pending_user_evts_send(void)
/* Function for sending all pending discovery events to the corresponding user modules.  */
static void pending_user_evts_send(void)
{
    uint32_t i = 0;
    for (i = 0; i < m_num_of_handlers_reg; i++)
    {
        m_pending_user_evts[i].evt_handler(&(m_pending_user_evts[i].evt));
    }
    m_pending_usr_evt_index = 0;
}