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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user