From: jihye kim Date: Fri, 24 Aug 2012 10:30:44 +0000 (+0900) Subject: add get battery polling function X-Git-Tag: submit/tizen/20210607.045509~52^2~5^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66b199cc00323dd7e345c049f9c1e11f6e2425bf;p=platform%2Fhal%2Fbackend%2Femulator%2Fdevice-emulator.git add get battery polling function --- 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;