diff options
author | srimaldia <hariasti.srimaldia-1@jp.alps.com> | 2016-12-22 18:42:54 +0900 |
---|---|---|
committer | srimaldia <hariasti.srimaldia-1@jp.alps.com> | 2016-12-22 20:43:33 +0900 |
commit | 3e63800b18c385cb0b52c593daa1f535498d01f0 (patch) | |
tree | 5c759f6c2f70d061daeed37c815b279cd12b81f6 /binding-bluetooth/bluetooth-api.c | |
parent | ec52b6af0657ebd200507e63e85573e564200d54 (diff) |
Add status icon for bluetooth
<?xml version="1.0"?> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow send_destination="org.agl.homescreen"/>
</policy>
</busconfig>
Change-Id: I598fd21f66620a518d5cc4068c352c31961834bd
Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
Diffstat (limited to 'binding-bluetooth/bluetooth-api.c')
-rw-r--r-- | binding-bluetooth/bluetooth-api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c index f7e2d9a..487a79f 100644 --- a/binding-bluetooth/bluetooth-api.c +++ b/binding-bluetooth/bluetooth-api.c @@ -52,6 +52,8 @@ static void bt_power (struct afb_req request) if (0==ret) { + + setHMIStatus(ACTIVE); (TRUE==power_value)?json_object_object_add (jresp, "power", json_object_new_string ("on")) : json_object_object_add (jresp, "power", json_object_new_string ("off")); } @@ -72,6 +74,7 @@ static void bt_power (struct afb_req request) return; } json_object_object_add (jresp, "power", json_object_new_string ("on")); + setHMIStatus(ACTIVE); } /* "?value=" parameter is "0" or "false" */ @@ -84,6 +87,7 @@ static void bt_power (struct afb_req request) } json_object_object_add (jresp, "power", json_object_new_string ("off")); + setHMIStatus(INACTIVE); } else { |