blob: 94a69422a28ed9ec4e5111735209155d8a7ad483 [file] [log] [blame]
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -08001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18/*
19 * This file defines an NDK API.
20 * Do not remove methods.
21 * Do not change method signatures.
22 * Do not change the value of constants.
23 * Do not change the size of any of the classes defined in here.
24 * Do not reference types that are not part of the NDK.
25 * Do not #include files that aren't part of the NDK.
26 */
27
28#ifndef _NDK_CAMERA_ERROR_H
29#define _NDK_CAMERA_ERROR_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35typedef enum {
36 ACAMERA_OK = 0,
37
38 ACAMERA_ERROR_BASE = -10000,
39 ACAMERA_ERROR_UNKNOWN = ACAMERA_ERROR_BASE,
40 ACAMERA_ERROR_UNSUPPORTED = ACAMERA_ERROR_BASE - 1,
41 ACAMERA_ERROR_INVALID_PARAMETER = ACAMERA_ERROR_BASE - 2,
42 ACAMERA_ERROR_CAMERA_DISCONNECTED = ACAMERA_ERROR_BASE - 3,
43 ACAMERA_ERROR_NOT_ENOUGH_MEMORY = ACAMERA_ERROR_BASE - 4,
44 ACAMERA_ERROR_METADATA_NOT_FOUND = ACAMERA_ERROR_BASE - 5,
45 ACAMERA_ERROR_CAMERA_DEVICE = ACAMERA_ERROR_BASE - 6,
46 ACAMERA_ERROR_CAMERA_SERVICE = ACAMERA_ERROR_BASE - 7,
47 ACAMERA_ERROR_CAMERA_REQUEST = ACAMERA_ERROR_BASE - 8,
48 ACAMERA_ERROR_CAMERA_RESULT = ACAMERA_ERROR_BASE - 9,
49 ACAMERA_ERROR_CAMERA_BUFFER = ACAMERA_ERROR_BASE - 10,
50
51} camera_status_t;
52
53
54#ifdef __cplusplus
55} // extern "C"
56#endif
57
58#endif // _NDK_CAMERA_ERROR_H