diff --git a/winixd/functions/functionbase.cpp b/winixd/functions/functionbase.cpp index 113e35f..59ccb7b 100644 --- a/winixd/functions/functionbase.cpp +++ b/winixd/functions/functionbase.cpp @@ -1164,6 +1164,12 @@ void FunctionBase::trigger_htmx_event(const wchar_t * event_name, const wchar_t } +void FunctionBase::trigger_htmx_event(const wchar_t * event_name, const std::wstring & value) +{ + trigger_htmx_event(event_name, value.c_str()); +} + + /* * DEPRACATED * for backward compatibility diff --git a/winixd/functions/functionbase.h b/winixd/functions/functionbase.h index e3359d0..f6a5651 100644 --- a/winixd/functions/functionbase.h +++ b/winixd/functions/functionbase.h @@ -243,6 +243,7 @@ public: virtual void trigger_htmx_event(const wchar_t * event_name, int value); virtual void trigger_htmx_event(const wchar_t * event_name, long value); virtual void trigger_htmx_event(const wchar_t * event_name, const wchar_t * value); + virtual void trigger_htmx_event(const wchar_t * event_name, const std::wstring & value);