summaryrefslogtreecommitdiff
path: root/src/android/thread_rpc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-12 05:30:06 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-19 18:07:28 +0300
commit0c32433d8c742d2a52d44264c64faec2c7ac28f2 (patch)
tree2d38c176392f38b9e31f7d48a5ad1be26f628a79 /src/android/thread_rpc.h
parent778f6b1d7070ddc5b920764d5233e318b15ccf12 (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/thread_rpc.h')
-rw-r--r--src/android/thread_rpc.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/android/thread_rpc.h b/src/android/thread_rpc.h
index 6d899283..f577a5d9 100644
--- a/src/android/thread_rpc.h
+++ b/src/android/thread_rpc.h
@@ -12,9 +12,6 @@
#include <hardware/camera3.h>
-#include "message.h"
-#include "thread.h"
-
class ThreadRpc
{
public:
@@ -39,16 +36,4 @@ private:
std::condition_variable cv_;
};
-class ThreadRpcMessage : public libcamera::Message
-{
-public:
- ThreadRpcMessage();
- ThreadRpc *rpc;
-
- static Message::Type type();
-
-private:
- static libcamera::Message::Type rpcType_;
-};
-
#endif /* __ANDROID_THREAD_RPC_H__ */