From: jihye kim Date: Mon, 12 Nov 2012 02:41:22 +0000 (+0900) Subject: insert the charging decision API depending on the target. X-Git-Tag: submit/tizen/20210607.045509~52^2~5^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49501e215178268e37bdb102341ba69c23f5d8dc;p=platform%2Fhal%2Fbackend%2Femulator%2Fdevice-emulator.git insert the charging decision API depending on the target. --- diff --git a/include/devman_plugin_intf.h b/include/devman_plugin_intf.h index 87664e9..ee0181a 100644 --- a/include/devman_plugin_intf.h +++ b/include/devman_plugin_intf.h @@ -108,6 +108,7 @@ typedef struct { 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_battery_support_insuspend_charging) (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 d823635..4a5eed7 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.10 +Version: 0.0.11 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 7015590..28b5d7c 100644 --- a/src/device_manager_plugin_maru.c +++ b/src/device_manager_plugin_maru.c @@ -522,6 +522,13 @@ int OEM_sys_get_battery_polling_required(int *value) return 0; } +int OEM_sys_get_battery_support_insuspend_charging(int *value) +{ + *value = 1; + + return 0; +} + int OEM_sys_get_uart_path(int *value) { char buf[BUFF_MAX] = {0}; @@ -925,6 +932,7 @@ EXPORT_API const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_inte 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_battery_support_insuspend_charging = &OEM_sys_get_battery_support_insuspend_charging; 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;