summaryrefslogtreecommitdiff
path: root/src/domloader.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-07-25 17:49:16 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-09-28 20:37:47 +0200
commit9d1ea1e7cfa256c7f5cac027382d92f658734ccb (patch)
tree39ec7cdaa8ed571137430ccbbc0a391bb27427a3 /src/domloader.h
parentcd9af98abdce1fe3759e786d6b010a7fe3395e2c (diff)
Add generic logger interface for propagating messages while loading drumkits to the commandline
and/or plugin UI.
Diffstat (limited to 'src/domloader.h')
-rw-r--r--src/domloader.h4
1 files changed, 3 insertions, 1 deletions
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 <vector>
#include <string>
+#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<InstrumentDOM>& instrumentdoms,
- DrumKit& drumkit);
+ DrumKit& drumkit, LogFunction logger = nullptr);
private:
static InstrumentChannel* addOrGetChannel(Instrument& instrument,