diff 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
line wrap: on
line diff
--- a/bits/RequestOrResponse.h	Fri Oct 07 16:43:18 2016 +0100
+++ b/bits/RequestOrResponse.h	Mon Oct 10 15:03:47 2016 +0100
@@ -51,16 +51,25 @@
     enum Direction {
 	Request, Response
     };
+
+    struct RpcId {
+        enum { Absent, Number, Tag } type;
+        int number;
+        std::string tag;
+    };
     
     RequestOrResponse() : // nothing by default
 	direction(Request),
 	type(RRType::NotValid),
-	success(false) { }
+	success(false),
+        id({ RpcId::Absent, 0, "" })
+    { }
 
     Direction direction;
     RRType type;
     bool success;
     std::string errorText;
+    RpcId id;
 
     Vamp::HostExt::ListResponse listResponse;
     Vamp::HostExt::LoadRequest loadRequest;