Mercurial > hg > piper-cpp
comparison bits/RequestOrResponse.h @ 73:7bfc07576830
Ensure id is passed through properly in convert and in server
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 10 Oct 2016 15:03:47 +0100 |
parents | 815e94fedc1c |
children |
comparison
equal
deleted
inserted
replaced
72:16acd7d24b1a | 73:7bfc07576830 |
---|---|
49 { | 49 { |
50 public: | 50 public: |
51 enum Direction { | 51 enum Direction { |
52 Request, Response | 52 Request, Response |
53 }; | 53 }; |
54 | |
55 struct RpcId { | |
56 enum { Absent, Number, Tag } type; | |
57 int number; | |
58 std::string tag; | |
59 }; | |
54 | 60 |
55 RequestOrResponse() : // nothing by default | 61 RequestOrResponse() : // nothing by default |
56 direction(Request), | 62 direction(Request), |
57 type(RRType::NotValid), | 63 type(RRType::NotValid), |
58 success(false) { } | 64 success(false), |
65 id({ RpcId::Absent, 0, "" }) | |
66 { } | |
59 | 67 |
60 Direction direction; | 68 Direction direction; |
61 RRType type; | 69 RRType type; |
62 bool success; | 70 bool success; |
63 std::string errorText; | 71 std::string errorText; |
72 RpcId id; | |
64 | 73 |
65 Vamp::HostExt::ListResponse listResponse; | 74 Vamp::HostExt::ListResponse listResponse; |
66 Vamp::HostExt::LoadRequest loadRequest; | 75 Vamp::HostExt::LoadRequest loadRequest; |
67 Vamp::HostExt::LoadResponse loadResponse; | 76 Vamp::HostExt::LoadResponse loadResponse; |
68 Vamp::HostExt::ConfigurationRequest configurationRequest; | 77 Vamp::HostExt::ConfigurationRequest configurationRequest; |