From 9d1ea1e7cfa256c7f5cac027382d92f658734ccb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 25 Jul 2019 17:49:16 +0200 Subject: Add generic logger interface for propagating messages while loading drumkits to the commandline and/or plugin UI. --- src/domloader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/domloader.h') diff --git a/src/domloader.h b/src/domloader.h index 2901560..103de27 100644 --- a/src/domloader.h +++ b/src/domloader.h @@ -29,6 +29,8 @@ #include #include +#include "logger.h" + struct DrumkitDOM; struct InstrumentDOM; class DrumKit; @@ -45,7 +47,7 @@ public: bool loadDom(const std::string& basepath, const DrumkitDOM& dom, const std::vector& instrumentdoms, - DrumKit& drumkit); + DrumKit& drumkit, LogFunction logger = nullptr); private: static InstrumentChannel* addOrGetChannel(Instrument& instrument, -- cgit v1.2.3