v1.1.20 Release
This commit is contained in:
+13
-2
@@ -35,8 +35,17 @@
|
||||
|
||||
namespace pipedal {
|
||||
class LogFeature {
|
||||
|
||||
public:
|
||||
class LogMessageListener {
|
||||
public:
|
||||
virtual void OnLogError(const char*message) = 0;
|
||||
virtual void OnLogWarning(const char*message) = 0;
|
||||
virtual void OnLogInfo(const char*message) = 0;
|
||||
virtual void OnLogDebug(const char*message) = 0;
|
||||
};
|
||||
private:
|
||||
LogMessageListener *logMessageListener = nullptr;
|
||||
std::string messagePrefix;
|
||||
LV2_URID nextAtom = 0;
|
||||
LV2_Feature feature;
|
||||
LV2_Log_Log log;
|
||||
@@ -59,7 +68,8 @@ namespace pipedal {
|
||||
|
||||
public:
|
||||
LogFeature();
|
||||
void Prepare(MapFeature* map);
|
||||
void Prepare(MapFeature* map, const std::string &messagePrefix, LogMessageListener*listener);
|
||||
|
||||
|
||||
void LogError(const char*fmt,...);
|
||||
void LogWarning(const char*fmt,...);
|
||||
@@ -84,5 +94,6 @@ namespace pipedal {
|
||||
int vprintf(LV2_URID type, const char* fmt, va_list va);
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user