insert the charging decision API depending on the target.
authorjihye kim <jihye1128.kim@samsung.com>
Mon, 12 Nov 2012 02:41:22 +0000 (11:41 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Mon, 12 Nov 2012 02:41:22 +0000 (11:41 +0900)
include/devman_plugin_intf.h
packaging/device-manager-plugin-maru.spec
src/device_manager_plugin_maru.c

index 87664e9..ee0181a 100644 (file)
@@ -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);
index d823635..4a5eed7 100644 (file)
@@ -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
index 7015590..28b5d7c 100644 (file)
@@ -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;