1/*
2 * Copyright (C) 2011 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 * Contains implementation of the camera HAL layer in the system running
19 * under the emulator.
20 *
21 * This file contains only required HAL header, which directs all the API calls
22 * to the EmulatedCameraFactory class implementation, wich is responsible for
23 * managing emulated cameras.
24 */
25
26#include "EmulatedCameraFactory.h"
27
28/*
29 * Required HAL header.
30 */
31camera_module_t HAL_MODULE_INFO_SYM = {
32    common: {
33         tag:                HARDWARE_MODULE_TAG,
34         module_api_version: CAMERA_MODULE_API_VERSION_2_0,
35         hal_api_version:    HARDWARE_HAL_API_VERSION,
36         id:                 CAMERA_HARDWARE_MODULE_ID,
37         name:               "Emulated Camera Module",
38         author:             "The Android Open Source Project",
39         methods:            &android::EmulatedCameraFactory::mCameraModuleMethods,
40         dso:                NULL,
41         reserved:           {0},
42    },
43    get_number_of_cameras:  android::EmulatedCameraFactory::get_number_of_cameras,
44    get_camera_info:        android::EmulatedCameraFactory::get_camera_info,
45};
46