diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-12 05:30:06 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-19 18:07:28 +0300 |
commit | 0c32433d8c742d2a52d44264c64faec2c7ac28f2 (patch) | |
tree | 2d38c176392f38b9e31f7d48a5ad1be26f628a79 /src/android/camera_device.h | |
parent | 778f6b1d7070ddc5b920764d5233e318b15ccf12 (diff) |
android: Simplify thread RPC with Object::invokeMethod()
Replace the manual implementation of asynchronous method invocation
through a custom message with Object::invokeMethod(). This simplifies
the thread RPC implementation.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r-- | src/android/camera_device.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h index ac5b95c9..4d834ceb 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -26,13 +26,15 @@ return nullptr; \ } while(0); +class ThreadRpc; + class CameraDevice : public libcamera::Object { public: CameraDevice(unsigned int id, std::shared_ptr<libcamera::Camera> &camera); ~CameraDevice(); - void message(libcamera::Message *message); + void call(ThreadRpc *rpc); int open(); void close(); |