/* Function for fetching the event handler provided by a registered application module.  */
static ble_db_discovery_evt_handler_t registered_handler_get(const ble_uuid_t *const p_srv_uuid)
/* Function for fetching the event handler provided by a registered application module.  */
static ble_db_discovery_evt_handler_t registered_handler_get(const ble_uuid_t *const p_srv_uuid)
{
    uint32_t i;
    for (i = 0; i < m_num_of_handlers_reg; i++)
    {
        if (BLE_UUID_EQ(&(m_registered_handlers[i]), p_srv_uuid))
        {
            return (m_evt_handler);
        }
    }
    return NULL;
}