diff options
author | jihye kim <jihye1128.kim@samsung.com> | 2012-08-24 19:30:44 +0900 |
---|---|---|
committer | jihye kim <jihye1128.kim@samsung.com> | 2012-08-24 19:30:44 +0900 |
commit | 66b199cc00323dd7e345c049f9c1e11f6e2425bf (patch) | |
tree | fb09c7a39af280603e6fedfb1f88b31b9a1936de | |
parent | 4c0393d68a36ff1a5f20aa2fe2ca9e0d6dd29f8b (diff) | |
download | device-manager-plugin-emul-66b199cc00323dd7e345c049f9c1e11f6e2425bf.tar.gz device-manager-plugin-emul-66b199cc00323dd7e345c049f9c1e11f6e2425bf.tar.bz2 device-manager-plugin-emul-66b199cc00323dd7e345c049f9c1e11f6e2425bf.zip |
add get battery polling function
-rw-r--r-- | include/devman_plugin_intf.h | 1 | ||||
-rw-r--r-- | packaging/device-manager-plugin-maru.spec | 2 | ||||
-rw-r--r-- | src/device_manager_plugin_maru.c | 8 |
3 files changed, 10 insertions, 1 deletions
diff --git a/include/devman_plugin_intf.h b/include/devman_plugin_intf.h index 263442b..87664e9 100644 --- a/include/devman_plugin_intf.h +++ b/include/devman_plugin_intf.h @@ -107,6 +107,7 @@ typedef struct { int (*OEM_sys_get_battery_charge_now) (int *value); int (*OEM_sys_get_battery_present) (int *value); int (*OEM_sys_get_battery_health) (int *value); + int (*OEM_sys_get_battery_polling_required) (int *value); int (*OEM_sys_get_jack_charger_online) (int *value); int (*OEM_sys_get_jack_earjack_online) (int *value); diff --git a/packaging/device-manager-plugin-maru.spec b/packaging/device-manager-plugin-maru.spec index 992521d..4a07503 100644 --- a/packaging/device-manager-plugin-maru.spec +++ b/packaging/device-manager-plugin-maru.spec @@ -1,6 +1,6 @@ Name: device-manager-plugin-maru Summary: device-manager-plugin-maru -Version: 0.0.6 +Version: 0.0.7 Release: 1 Group: TO_BE/FILLED_IN License: TO_BE/FILLED_IN diff --git a/src/device_manager_plugin_maru.c b/src/device_manager_plugin_maru.c index 8864703..210582b 100644 --- a/src/device_manager_plugin_maru.c +++ b/src/device_manager_plugin_maru.c @@ -506,6 +506,13 @@ int OEM_sys_get_battery_health(int *value) return -1; } +int OEM_sys_get_battery_polling_required(int *value) +{ + *value = 1; + + return 0; +} + int OEM_sys_get_uart_path(int *value) { char *buf; @@ -906,6 +913,7 @@ EXPORT_API const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_inte devman_plugin_interface_emul.OEM_sys_get_battery_charge_now = &OEM_sys_get_battery_charge_now; devman_plugin_interface_emul.OEM_sys_get_battery_present = &OEM_sys_get_battery_present; devman_plugin_interface_emul.OEM_sys_get_battery_health = &OEM_sys_get_battery_health; + devman_plugin_interface_emul.OEM_sys_get_battery_polling_required = &OEM_sys_get_battery_polling_required; devman_plugin_interface_emul.OEM_sys_get_jack_charger_online = &OEM_sys_get_jack_charger_online; devman_plugin_interface_emul.OEM_sys_get_jack_earjack_online = &OEM_sys_get_jack_earjack_online; |