Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / include / platform / CHIPDeviceError.h
1 /*
2  *
3  *    Copyright (c) 2020 Project CHIP Authors
4  *    Copyright (c) 2018 Nest Labs, Inc.
5  *
6  *    Licensed under the Apache License, Version 2.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19 #pragma once
20
21 #define CHIP_DEVICE_ERROR_MIN 11000000
22 #define CHIP_DEVICE_ERROR_MAX 11000999
23 #define _CHIP_DEVICE_ERROR(e) (CHIP_DEVICE_ERROR_MIN + (e))
24
25 /**
26  *  @def CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND
27  *
28  *  @brief
29  *    The requested configuration value was not found.
30  *
31  */
32 #define CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND _CHIP_DEVICE_ERROR(1)
33
34 /**
35  *  @def CHIP_DEVICE_ERROR_NOT_SERVICE_PROVISIONED
36  *
37  *  @brief
38  *    The device has not been service provisioned.
39  *
40  */
41 #define CHIP_DEVICE_ERROR_NOT_SERVICE_PROVISIONED _CHIP_DEVICE_ERROR(2)
42
43 /**
44  *  @def CHIP_DEVICE_ERROR_SOFTWARE_UPDATE_ABORTED
45  *
46  *  @brief
47  *    The software update was aborted by application
48  *
49  */
50 #define CHIP_DEVICE_ERROR_SOFTWARE_UPDATE_ABORTED _CHIP_DEVICE_ERROR(3)
51
52 /**
53  *  @def CHIP_DEVICE_ERROR_SOFTWARE_UPDATE_IGNORED
54  *
55  *  @brief
56  *    The software update was ignored by application.
57  *
58  */
59 #define CHIP_DEVICE_ERROR_SOFTWARE_UPDATE_IGNORED _CHIP_DEVICE_ERROR(4)