summaryrefslogtreecommitdiffstats
path: root/binding/gdbus/ofono_manager.h
diff options
context:
space:
mode:
authorsaman <mahmoudi.saman1@gmail.com>2020-11-07 09:58:01 +0330
committersaman <mahmoudi.saman1@gmail.com>2020-11-19 09:08:28 +0330
commit56fec224dc4dd73a631ac2c15c1a240fd8e92e81 (patch)
tree64293bd46878d2ad7052b8387d4f6f21c04acf82 /binding/gdbus/ofono_manager.h
parent5762ff51fce596eadbd57522a6ab2978147cd830 (diff)
Getting battery level of connected phone device
Adding "get_battery_level" verb for getting battery level of connected phone device. Is used ofono service and handsfree interface. Bug-AGL: SPEC-3687 Signed-off-by: saman <mahmoudi.saman1@gmail.com> Change-Id: I9713cb186195a170909e6511991cfc32380e12a1
Diffstat (limited to 'binding/gdbus/ofono_manager.h')
-rw-r--r--binding/gdbus/ofono_manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/gdbus/ofono_manager.h b/binding/gdbus/ofono_manager.h
index 0556d4f..c7333d0 100644
--- a/binding/gdbus/ofono_manager.h
+++ b/binding/gdbus/ofono_manager.h
@@ -21,6 +21,9 @@
#define AFB_BINDING_VERSION 3
#include <afb/afb-binding.h>
+#define OFONO_SERVICE "org.ofono"
+#define OFONO_HANDSFREE_INTERFACE OFONO_SERVICE ".Handsfree"
+
int ofono_manager_init(void);
void ofono_manager_invalidate_default_modem(void);
int ofono_manager_set_default_modem(const char *);
@@ -31,3 +34,4 @@ const gchar *ofono_manager_get_default_modem_type(void);
gboolean ofono_manager_get_default_modem_powered(void);
gboolean ofono_manager_get_default_modem_online(void);
gboolean ofono_manager_get_default_modem_valid(void);
+json_object *ofono_get_property(const char *path, const char *interface, const char *name, GError **error); \ No newline at end of file