Abstract away logging unknown interfaces

This commit is contained in:
Robbert van der Helm
2020-12-12 22:22:20 +01:00
parent 39984ad442
commit 0ad56874e2
5 changed files with 37 additions and 22 deletions
+9
View File
@@ -42,6 +42,15 @@ class Vst3Logger {
logger.log_trace(message);
}
/**
* Log about encountering an unknown interface. The location and the UID
* will be printed when the verbosity level is set to `most_events` or
* higher. In case we could not get a FUID (because of null pointers, for
* instance), `std::nullopt` should be passed.
*/
void log_unknown_interface(const std::string& where,
const std::optional<Steinberg::FUID>& uid);
// For every object we send using `Vst3MessageHandler` we have overloads
// that print information about the request and the response. The boolean
// flag here indicates whether the request was initiated on the host side