/* Function for checking if data in an iOS notification is out of bounds.  */
static uint32_t ble_ancs_verify_notification_format(const ble_ancs_c_evt_notif_t *notif)
/* Function for checking if data in an iOS notification is out of bounds.  */
static uint32_t ble_ancs_verify_notification_format(const ble_ancs_c_evt_notif_t *notif)
{
    if(   (notif->evt_id >= BLE_ANCS_NB_OF_EVT_ID)
       || (notif->category_id >= BLE_ANCS_NB_OF_CATEGORY_ID))
    {
        return NRF_ERROR_INVALID_PARAM;
    }
    return NRF_SUCCESS;
}