1 /*
2  * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_DISTRIBUTED_CAMERA_ERRNO_H
17 #define OHOS_DISTRIBUTED_CAMERA_ERRNO_H
18 
19 namespace OHOS {
20 namespace DistributedHardware {
21     enum DistributedCameraErrno {
22         DCAMERA_OK = 0,
23         DCAMERA_MEMORY_OPT_ERROR = -1,
24         DCAMERA_BAD_VALUE = -2,
25         DCAMERA_BAD_TYPE = -3,
26         DCAMERA_ALREADY_EXISTS = -4,
27         DCAMERA_INIT_ERR = -5,
28         DCAMERA_NOT_FOUND = -6,
29         DCAMERA_WRONG_STATE = -7,
30         DCAMERA_BAD_OPERATE = -8,
31         DCAMERA_OPEN_CONFLICT = -9,
32         DCAMERA_DISABLE_PROCESS = -10,
33         DCAMERA_INDEX_OVERFLOW = -11,
34         DCAMERA_REGIST_HAL_FAILED = -12,
35         DCAMERA_UNREGIST_HAL_FAILED = -13,
36         DCAMERA_ALLOC_ERROR = -14,
37         DCAMERA_DEVICE_BUSY = -15,
38     };
39 } // namespace DistributedHardware
40 } // namespace OHOS
41 #endif // OHOS_DISTRIBUTED_CAMERA_ERRNO_H