25 #include <lv2/lv2plug.in/ns/ext/log/log.h> 36 template<
bool Required = true>
39 template<
class Derived>
40 struct I : Extension<Required>
56 Derived* d =
reinterpret_cast<Derived*
>(instance);
59 mixin->p_log =
reinterpret_cast<LV2_Log_Log*
>(data);
69 std::clog <<
" [Log] Validation " 70 << (this->m_ok ?
"succeeded" :
"failed")
86 vprintf (LV2_URID type,
const char* fmt, va_list ap)
89 return p_log->vprintf(p_log->handle, type, fmt, ap);
90 return ::vprintf (fmt, ap);
101 printf (LV2_URID type,
const char* fmt, ...)
104 va_start(argptr, fmt);
106 int res (this->
vprintf(type, fmt, argptr));
void * FeatureData
Definition: feature.hpp:47
bool check_ok()
Definition: log.hpp:65
static void handle_feature(void *instance, FeatureData data)
Definition: log.hpp:54
int printf(LV2_URID type, const char *fmt,...)
Definition: log.hpp:101
Definition: feature.hpp:34
static void map_feature_handlers(FeatureHandlerMap &hmap)
Definition: log.hpp:47
I()
Definition: log.hpp:43
map< string, FeatureHandler > FeatureHandlerMap
Definition: feature.hpp:57
int vprintf(LV2_URID type, const char *fmt, va_list ap)
Definition: log.hpp:86