40 static int pingcount = 0;
41 afb_req_success_f(request, json_object_new_int(pingcount),
"Ping count = %d", pingcount);
42 HMI_NOTICE(
"homescreen-service",
"Verbosity macro at level notice invoked at ping invocation count = %d", pingcount);
63 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
68 struct json_object *res = json_object_new_object();
71 afb_req_success(request, res,
"afb_event_push event [tap_shortcut]");
91 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
96 struct json_object *res = json_object_new_object();
99 afb_req_success(request, res,
"afb_event_push event [on_screen_message]");
119 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
124 struct json_object *res = json_object_new_object();
127 afb_req_success(request, res,
"afb_event_push event [on_screen_reply]");
144 int ret = g_client_manager->
subscribe(request);
146 afb_req_fail_f(request,
"afb_req_subscribe failed",
"called %s.", __FUNCTION__);
151 struct json_object *res = json_object_new_object();
154 afb_req_success_f(request, res,
"homescreen binder subscribe.");
173 afb_req_fail_f(request,
"afb_req_unsubscribe failed",
"called %s.", __FUNCTION__);
178 struct json_object *res = json_object_new_object();
181 afb_req_success_f(request, res,
"homescreen binder unsubscribe success.");
198 int ret = g_client_manager->
showWindow(request);
200 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
205 struct json_object *res = json_object_new_object();
208 afb_req_success(request, res,
"afb_event_push event [showWindow]");
225 int ret = g_client_manager->
hideWindow(request);
227 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
232 struct json_object *res = json_object_new_object();
235 afb_req_success(request, res,
"afb_event_push event [hideWindow]");
254 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
259 struct json_object *res = json_object_new_object();
262 afb_req_success(request, res,
"afb_event_push event [replyShowWindow]");
283 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
288 struct json_object *res = json_object_new_object();
291 afb_req_success(request, res,
"afb_event_push event [showNotification]");
312 afb_req_fail_f(request,
"failed",
"called %s, Unknown parameter", __FUNCTION__);
317 struct json_object *res = json_object_new_object();
320 afb_req_success(request, res,
"afb_event_push event [showInformation]");
335 { .verb=
"subscribe", .callback=
subscribe },
354 HMI_NOTICE(
"homescreen-service",
"binding preinit (was register)");
370 HMI_NOTICE(
"homescreen-service",
"binding init");
372 g_client_manager->
init();
389 static void onevent(afb_api_t api,
const char *event,
struct json_object *
object)
391 HMI_NOTICE(
"homescreen-service",
"on_event %s", event);
396 .specification = NULL,
int hideWindow(afb_req_t request)
static void showWindow(afb_req_t request)
static void on_screen_reply(afb_req_t request)
int subscribe(afb_req_t request)
int tap_shortcut(afb_req_t request)
static void on_screen_message(afb_req_t request)
const afb_binding_t afbBindingExport
static void subscribe(afb_req_t request)
const char _reply_message[]
static void unsubscribe(afb_req_t request)
int on_screen_reply(afb_req_t request)
#define HMI_NOTICE(prefix, args,...)
static const afb_verb_t verbs[]
int showWindow(afb_req_t request)
static void showInformation(afb_req_t request)
static void pingSample(afb_req_t request)
static void onevent(afb_api_t api, const char *event, struct json_object *object)
int unsubscribe(afb_req_t request)
int replyShowWindow(afb_req_t request)
static void hideWindow(afb_req_t request)
static HS_ClientManager * g_client_manager
const char _display_message[]
static HS_ClientManager * instance(void)
int showInformation(afb_req_t request)
static void replyShowWindow(afb_req_t request)
static void showNotification(afb_req_t request)
void hs_add_object_to_json_object_func(struct json_object *j_obj, const char *verb_name, int count,...)
static int preinit(afb_api_t api)
int on_screen_message(afb_req_t request)
const char _application_id[]
int showNotification(afb_req_t request)
static void tap_shortcut(afb_req_t request)
static int init(afb_api_t api)