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/RemoteFuncClient.h | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h index 56db96c..63798e7 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h @@ -5,26 +5,29 @@ #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H -#include <string> +#include <capnp/message.h> +#include <capnp/serialize-packed.h> #include <capnp/ez-rpc.h> #include "RemoteMethod.capnp.h" -#include "CameraWrapperServer.h" -void startRemoteServer(); - -class RtspFaceViewClient : RtspFaceView::Client +// +class RtspFaceViewClient { public: RtspFaceViewClient(); - + RtspFaceView::Client& getClient(); ~RtspFaceViewClient() {}; ::kj::WaitScope &getWaitScope(); + capnp::EzRpcClient* getEzRpcClient(); private: - capnp::EzRpcClient rpcClient; + RtspFaceView::Client *client; + capnp::EzRpcClient* rpcClient; }; +void startRemoteServer(); + RtspFaceViewClient* getRtspFaceViewClient(); class RtspFaceDetectImpl final : public RtspFaceDetect::Server -- Gitblit v1.8.0