Index: sources/device/DeviceError.h =================================================================== diff -u -r47c8f13876317ba36500400f894d96c9bce9eb17 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/device/DeviceError.h (.../DeviceError.h) (revision 47c8f13876317ba36500400f894d96c9bce9eb17) +++ sources/device/DeviceError.h (.../DeviceError.h) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file DeviceError.h * \author (last) Behrouz NematiPour - * \date (last) 03-Jun-2021 + * \date (last) 23-Feb-2022 * \author (original) Behrouz NematiPour - * \date (original) 03-Jun-2020 + * \date (original) 06-Jun-2021 * */ #pragma once @@ -38,11 +38,12 @@ public: enum Scripts_Error_Enum { - eDevice_OK = 0 , + eDevice_OK = 0 , // The scripts can use the exit code of each commands they execute and the assumption is most of Linux commands exit codes are less than 1000. // so any error less that 1000 will be identified as device error - eDevice_Scripts_Error_Start = 1000 , // the script itself in system starts from 0 so give it enough gap + eDevice_Scripts_Error_Start = 1000, // the script itself in system starts from 0 so give it enough gap + eDevice_Scripts_Error_Unknown = 1000, eDevice_Scripts_Error_Status , eDevice_Scripts_Error_NotFound , @@ -61,6 +62,11 @@ eDevice_BCuff_Error_Query_Empty , eDevice_BCuff_Error_Query_Addr , + eDevice_CryptSetup_Error , + eDevice_FactoryReset_Error , + eDevice_Decommission_Error , + eDevice_USBMount_Error , + eDevice_Error_End };