diff options
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 47e3335..373ec5f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -137,8 +137,7 @@ int binding_init() noexcept { namespace wm { void binding_api::send_event(char const *evname, json_object *payload) { logdebug("%s: %s(%s)", __func__, evname, json_object_to_json_string(payload)); - afb_event ev = afb_daemon_make_event(evname); - int ret = afb_event_broadcast(ev, payload); + int ret = afb_daemon_broadcast_event(evname, payload); if (ret != 0) { logdebug("afb_event_broadcast failed: %m"); } |