From 4d22d8d9332535a9c2f65e0e501a3eefbbd0ae30 Mon Sep 17 00:00:00 2001
From: chenke <chenke@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 12:45:29 +0800
Subject: [PATCH] JsonCpp和CapnpProtocol功能初步实现

---
 VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h
index bff5df3..75f482b 100644
--- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h
+++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h
@@ -5,32 +5,24 @@
 #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
 #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
 
-#include <iostream>
+#include <string>
 #include <capnp/ez-rpc.h>
 #include "RemoteMethod.proto.h"
 #include "CameraWrapperServer.h"
-
-const RtspFaceView::Client getRtspFaceViewClient();
-
-class RtspFaceViewClient{
+void startRemoteServer();
+class RtspFaceViewClient : RtspFaceView::Client{
 public:
     RtspFaceViewClient();
-    ~RtspFaceViewClient();
-
-    RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex);
-    RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex);
-    void setFaceLable(int cameraIndex,int trackId,std::string label);
-
+    ~RtspFaceViewClient(){};
+    ::kj::WaitScope& getWaitScope();
 private:
     capnp::EzRpcClient rpcClient;
-    RtspFaceDetect::Client client;
 };
+
+const RtspFaceViewClient& getRtspFaceViewClient();
 
 class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
 public:
-    RtspFaceDetectImpl();
-    ~RtspFaceDetectImpl();
-
     virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
 };
 

--
Gitblit v1.8.0