/* Callback function for events from the Identity Manager module.  */
static void im_evt_handler(im_evt_t const *p_event)
/* Callback function for events from the Identity Manager module.  */
static void im_evt_handler(im_evt_t const *p_event)
{
    switch (p_event->evt_id)
    {
        case IM_EVT_BONDED_PEER_CONNECTED:
            local_db_apply_in_evt(p_event->conn_handle);
            if (gscm_service_changed_ind_needed(p_event->conn_handle))
            {
                ble_conn_state_user_flag_set(p_event->conn_handle, m_gcm.flag_id_service_changed_pending, true);
            }
            break;
        default:
            break;
    }
}