11c1b0f19Sopenharmony_ci/*
21c1b0f19Sopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
31c1b0f19Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
41c1b0f19Sopenharmony_ci * you may not use this file except in compliance with the License.
51c1b0f19Sopenharmony_ci * You may obtain a copy of the License at
61c1b0f19Sopenharmony_ci *
71c1b0f19Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
81c1b0f19Sopenharmony_ci *
91c1b0f19Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
101c1b0f19Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
111c1b0f19Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121c1b0f19Sopenharmony_ci * See the License for the specific language governing permissions and
131c1b0f19Sopenharmony_ci * limitations under the License.
141c1b0f19Sopenharmony_ci */
151c1b0f19Sopenharmony_ci
161c1b0f19Sopenharmony_ci#ifndef OHOS_DISTRIBUTED_CAMERA_ERRNO_H
171c1b0f19Sopenharmony_ci#define OHOS_DISTRIBUTED_CAMERA_ERRNO_H
181c1b0f19Sopenharmony_ci
191c1b0f19Sopenharmony_cinamespace OHOS {
201c1b0f19Sopenharmony_cinamespace DistributedHardware {
211c1b0f19Sopenharmony_ci    enum DistributedCameraErrno {
221c1b0f19Sopenharmony_ci        DCAMERA_OK = 0,
231c1b0f19Sopenharmony_ci        DCAMERA_MEMORY_OPT_ERROR = -1,
241c1b0f19Sopenharmony_ci        DCAMERA_BAD_VALUE = -2,
251c1b0f19Sopenharmony_ci        DCAMERA_BAD_TYPE = -3,
261c1b0f19Sopenharmony_ci        DCAMERA_ALREADY_EXISTS = -4,
271c1b0f19Sopenharmony_ci        DCAMERA_INIT_ERR = -5,
281c1b0f19Sopenharmony_ci        DCAMERA_NOT_FOUND = -6,
291c1b0f19Sopenharmony_ci        DCAMERA_WRONG_STATE = -7,
301c1b0f19Sopenharmony_ci        DCAMERA_BAD_OPERATE = -8,
311c1b0f19Sopenharmony_ci        DCAMERA_OPEN_CONFLICT = -9,
321c1b0f19Sopenharmony_ci        DCAMERA_DISABLE_PROCESS = -10,
331c1b0f19Sopenharmony_ci        DCAMERA_INDEX_OVERFLOW = -11,
341c1b0f19Sopenharmony_ci        DCAMERA_REGIST_HAL_FAILED = -12,
351c1b0f19Sopenharmony_ci        DCAMERA_UNREGIST_HAL_FAILED = -13,
361c1b0f19Sopenharmony_ci        DCAMERA_ALLOC_ERROR = -14,
371c1b0f19Sopenharmony_ci        DCAMERA_DEVICE_BUSY = -15,
381c1b0f19Sopenharmony_ci    };
391c1b0f19Sopenharmony_ci} // namespace DistributedHardware
401c1b0f19Sopenharmony_ci} // namespace OHOS
411c1b0f19Sopenharmony_ci#endif // OHOS_DISTRIBUTED_CAMERA_ERRNO_H