From e26a5550539fa0cad91313bf9670df605199a324 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 15 八月 2017 13:55:25 +0800
Subject: [PATCH] capnproto fix bug

---
 VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h
index 4979693..0c59928 100644
--- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h
+++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h
@@ -5,27 +5,32 @@
 #ifndef RTSPNATIVECODEC_REMOTEMETHODSERVER_H
 #define RTSPNATIVECODEC_REMOTEMETHODSERVER_H
 
-#include <string>
+#include <capnp/message.h>
+#include <capnp/serialize-packed.h>
 #include <capnp/ez-rpc.h>
 #include "RemoteMethod.capnp.h"
 
-class RtspFaceDetectClient : public RtspFaceDetect::Client
+//C++妯″潡涓殑client锛岀敤浜庡彂鐜颁汉鑴告椂閫氱煡java妯″潡
+class RtspFaceDetectClient
 {
 public:
 	RtspFaceDetectClient();
-
+	RtspFaceDetect::Client* getClient();
 	~RtspFaceDetectClient() {};
 
 	::kj::WaitScope &getWaitScope();
 
+    capnp::EzRpcClient* getEzRpcClient();
 private:
-	capnp::EzRpcClient rpcClient;
+	RtspFaceDetect::Client* client;
+	capnp::EzRpcClient* rpcClient;
 };
 
 void startRemoteServer();
 
 RtspFaceDetectClient* getRtspFaceDetectClient();
 
+//C++妯″潡涓殑鏈嶅姟绔紝鐢ㄤ簬鍝嶅簲java绔殑璋冪敤鍙婁紶鍊�
 class RtspFaceViewImpl final : public RtspFaceView::Server
 {
 public:

--
Gitblit v1.8.0