summaryrefslogtreecommitdiffstats
path: root/bluetooth-manager.h
diff options
context:
space:
mode:
authorsrimaldia <hariasti.srimaldia-1@jp.alps.com>2016-12-22 18:42:54 +0900
committersrimaldia <hariasti.srimaldia-1@jp.alps.com>2016-12-22 20:43:33 +0900
commit562c232a4c172aa1f6fcf11765531c464f5c832a (patch)
tree62aab4a24a97be5a489df48987050816c12dc2ae /bluetooth-manager.h
parent68de4f90d5795475016189cff12d7e0011b07d37 (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 'bluetooth-manager.h')
-rw-r--r--bluetooth-manager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bluetooth-manager.h b/bluetooth-manager.h
index cb018b0..3602a78 100644
--- a/bluetooth-manager.h
+++ b/bluetooth-manager.h
@@ -77,6 +77,11 @@
#define AGENT_CONN (cli.agent_conn)
#define OBEX_CONN (cli.obex_conn)
+#define HOMESCREEN_SERVICE "org.agl.homescreen"
+#define HOMESCREEN_ICON_INTERFACE "org.agl.statusbar"
+#define HOMESCREEN_ICON_PATH "/StatusBar"
+#define HOMESCREEN_BT_ICON_POSITION 1
+
#define DBUS_REPLY_TIMEOUT (120 * 1000)
#define DBUS_REPLY_TIMEOUT_SHORT (10 * 1000)
@@ -115,6 +120,9 @@ typedef struct {
GSList * device;
} stBluetoothManage;
+enum btStates {INACTIVE, ACTIVE};
+
+
int BluetoothManageInit(void);
int adapter_set_powered(gboolean value);
@@ -136,6 +144,9 @@ int device_set_property(struct btd_device * addr, const char *property, const ch
int isAVPConnected(struct btd_device *BDdevice);
int isHFPConnected(struct btd_device *BDdevice);
+GError* setHMIStatus(enum btStates);
+
+
#endif /* BLUETOOTH_MANAGER_H */