Use std::avriant to encode event payloads

It's a bit more complicated this way, but nwo we can easily add support
for the opcode specific structs.
This commit is contained in:
Robbert van der Helm
2020-03-08 17:47:09 +01:00
parent d434bcf682
commit ff89d12c1a
5 changed files with 119 additions and 49 deletions
+3 -1
View File
@@ -20,6 +20,8 @@
#include <optional>
#include <ostream>
#include "serialization.h"
/**
* Super basic logging facility meant for debugging malfunctioning VST
* plugins. This is also used to redirect the output of the Wine process
@@ -93,7 +95,7 @@ class Logger {
int opcode,
int index,
intptr_t value,
std::optional<std::string> payload,
EventPayload payload,
float option);
void log_event_response(bool is_dispatch,
intptr_t return_value,