aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-client.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-10-30 16:57:07 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-10-30 16:57:07 +0900
commitfa700a537a584778128eac9b77f15c9818ee82dd (patch)
treef2c6b8f8b637d9f7bbb714ea9c47d2e0709cded6 /src/hs-client.cpp
parentac38c0f5d121e9dadb0fe5db25d7aed9fa1b9389 (diff)
fix onscreen bug
Diffstat (limited to 'src/hs-client.cpp')
-rw-r--r--src/hs-client.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/hs-client.cpp b/src/hs-client.cpp
index e7b429b..b2f9215 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;
}
/**
@@ -95,7 +96,8 @@ int HS_Client::showWindow(struct afb_req request, const char* appname)
_type, __FUNCTION__);
const char *param = afb_req_value(request, _parameter);
json_object_object_add(push_obj, _parameter, json_tokener_parse(param));
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
* push on_screen_message event
@@ -116,7 +118,8 @@ int HS_Client::on_screen_message(struct afb_req 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;
}
/**
@@ -138,7 +141,8 @@ int HS_Client::on_screen_reply(struct afb_req 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;
}
/**
@@ -202,7 +206,8 @@ int HS_Client::allocateRestriction(struct afb_req request, const char* area)
hs_add_object_to_json_object_str( push_obj, 4, _application_name, "restriction",
_type, __FUNCTION__);
json_object_object_add(push_obj, _args, json_tokener_parse(area));
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
@@ -225,7 +230,8 @@ int HS_Client::releaseRestriction(struct afb_req request, const char* area)
hs_add_object_to_json_object_str( push_obj, 4, _application_name, "restriction",
_type, __FUNCTION__);
json_object_object_add(push_obj, _args, json_tokener_parse(area));
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**