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/dgxmlparser.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/dgxmlparser.h') diff --git a/src/dgxmlparser.h b/src/dgxmlparser.h index 1bc580d..21d045b 100644 --- a/src/dgxmlparser.h +++ b/src/dgxmlparser.h @@ -27,11 +27,13 @@ #pragma once #include +#include #include "DGDOM.h" +#include "logger.h" -bool probeDrumkitFile(const std::string& filename); -bool probeInstrumentFile(const std::string& filename); +bool probeDrumkitFile(const std::string& filename, LogFunction logger = nullptr); +bool probeInstrumentFile(const std::string& filename, LogFunction logger = nullptr); -bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom); -bool parseInstrumentFile(const std::string& filename, InstrumentDOM& dom); +bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom, LogFunction logger = nullptr); +bool parseInstrumentFile(const std::string& filename, InstrumentDOM& dom, LogFunction logger = nullptr); -- cgit v1.2.3