summaryrefslogtreecommitdiffstats
path: root/src/hs-client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs-client.cpp')
-rw-r--r--src/hs-client.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hs-client.cpp b/src/hs-client.cpp
index 9fc9b61..c683c66 100644
--- a/src/hs-client.cpp
+++ b/src/hs-client.cpp
@@ -71,7 +71,8 @@ int HS_Client::tap_shortcut(const char* appname)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _application_name, appname,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
@@ -93,7 +94,8 @@ int HS_Client::on_screen_message(afb_req_t request, const char* message)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _display_message, message,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
@@ -115,7 +117,8 @@ int HS_Client::on_screen_reply(afb_req_t request, const char* message)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _reply_message, message,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**