summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-01 12:30:03 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-04 16:54:03 +0200
commit9a6402d09978fe418a017085b41a921894f802b9 (patch)
treed8026b071b5b60e2936ddca08adb9a90273cc176 /src
parent4a67c02ff81303b9e95537cbbaddf422d99f2fbd (diff)
main: simplify event broadcasting
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
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");
}