diff options
author | Dave Sparks <davidsparks@android.com> | 2009-06-24 10:42:53 -0700 |
---|---|---|
committer | Dave Sparks <davidsparks@android.com> | 2009-06-24 10:42:53 -0700 |
commit | f5a8faa751cc55c8474ce17d407c9933ad0efdeb (patch) | |
tree | a792deda75c8cd4f52d9ddc94d3ea0cb8c268ef6 /include/ui/Camera.h | |
parent | dc76f7bfa10a037ea0cc0f253022d8de7eefc691 (diff) | |
download | frameworks_native-f5a8faa751cc55c8474ce17d407c9933ad0efdeb.zip frameworks_native-f5a8faa751cc55c8474ce17d407c9933ad0efdeb.tar.gz frameworks_native-f5a8faa751cc55c8474ce17d407c9933ad0efdeb.tar.bz2 |
Cleanup header file. Disallow copy of Camera object by making copy
constructor and operator= private.
Diffstat (limited to 'include/ui/Camera.h')
-rw-r--r-- | include/ui/Camera.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/ui/Camera.h b/include/ui/Camera.h index 564a1db..bbc21c4 100644 --- a/include/ui/Camera.h +++ b/include/ui/Camera.h @@ -94,11 +94,6 @@ public: virtual void postData(int32_t msgType, const sp<IMemory>& dataPtr) = 0; }; -typedef void (*shutter_callback)(void *cookie); -typedef void (*frame_callback)(const sp<IMemory>& mem, void *cookie); -typedef void (*autofocus_callback)(bool focused, void *cookie); -typedef void (*error_callback)(status_t err, void *cookie); - class Camera : public BnCameraClient, public IBinder::DeathRecipient { public: @@ -163,6 +158,8 @@ public: private: Camera(); + Camera(const Camera&); + Camera& operator=(const Camera); virtual void binderDied(const wp<IBinder>& who); class DeathNotifier: public IBinder::DeathRecipient |