diff options
author | Chih-Chung Chang <chihchung@google.com> | 2010-05-06 16:36:58 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2010-05-10 11:21:14 +0800 |
commit | e25cc656392d8866e163f78b60c7791455d0fb44 (patch) | |
tree | d264b1c05e9edb2851c5ddc21a662617ea1d4ebc /include/camera/ICameraService.h | |
parent | a0a126a060b6b9ba51bc99f82ff4d322f779325e (diff) | |
download | frameworks_base-e25cc656392d8866e163f78b60c7791455d0fb44.zip frameworks_base-e25cc656392d8866e163f78b60c7791455d0fb44.tar.gz frameworks_base-e25cc656392d8866e163f78b60c7791455d0fb44.tar.bz2 |
Support multiple cameras in framework.
Change-Id: I081f0fbdca4b633715ea7c3b3d42f8662d27598a
Diffstat (limited to 'include/camera/ICameraService.h')
-rw-r--r-- | include/camera/ICameraService.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/camera/ICameraService.h b/include/camera/ICameraService.h index 82b1283..dcd434f 100644 --- a/include/camera/ICameraService.h +++ b/include/camera/ICameraService.h @@ -30,13 +30,16 @@ class ICameraService : public IInterface { public: enum { - CONNECT = IBinder::FIRST_CALL_TRANSACTION, + GET_NUMBER_OF_CAMERAS = IBinder::FIRST_CALL_TRANSACTION, + CONNECT }; public: DECLARE_META_INTERFACE(CameraService); - virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient) = 0; + virtual int32_t getNumberOfCameras() = 0; + virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, + int cameraId) = 0; }; // ---------------------------------------------------------------------------- |