Add stubs for missing/changed functions in the plugin interface 33/2233/1 2.0alpha master submit/trunk/20121019.214627
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 19 Oct 2012 21:17:34 +0000 (14:17 -0700)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 19 Oct 2012 21:40:22 +0000 (14:40 -0700)
This fixes system_server startup, as it crashes if the devman plugin
does not implement the full interface.

Change-Id: I4582040ec96e6af18d9012822c39e2d5b3483921

device-manager-plugin-pinetrail.c

index 9f53df3..1c87499 100644 (file)
@@ -60,7 +60,7 @@ int OEM_sys_get_backlight_max_brightness(int index, int *value)
     return ret;
 }
 
-int OEM_sys_get_backlight_brightness(int index, int *value)
+int OEM_sys_get_backlight_brightness(int index, int *value, int power_saving)
 {
     int ret = -1;
 
@@ -70,7 +70,7 @@ int OEM_sys_get_backlight_brightness(int index, int *value)
     return ret;
 }
 
-int OEM_sys_set_backlight_brightness(int index, int value)
+int OEM_sys_set_backlight_brightness(int index, int value, int power_saving)
 {
     int ret = -1;
 
@@ -258,10 +258,12 @@ int OEM_sys_get_null_3(char *node)
 static const OEM_sys_devman_plugin_interface  devman_plugin_interface_pinetrail = {
     OEM_sys_get_null_1, //int        (*OEM_sys_get_display_count) (int *value);
 
+    OEM_sys_get_null_2, //int        (*OEM_sys_get_backlight_min_brightness) (int index, int *value);
     OEM_sys_get_backlight_max_brightness, //int        (*OEM_sys_get_backlight_max_brightness) (int index, int *value);
-    OEM_sys_get_backlight_brightness, //int        (*OEM_sys_get_backlight_brightness) (int index, int *value);
-    OEM_sys_set_backlight_brightness, //int        (*OEM_sys_set_backlight_brightness) (int index, int value);
+    OEM_sys_get_backlight_brightness, //int        (*OEM_sys_get_backlight_brightness) (int index, int *value, int power_saving);
+    OEM_sys_set_backlight_brightness, //int        (*OEM_sys_set_backlight_brightness) (int index, int value, int power_saving);
 
+    OEM_sys_get_null_2, //int        (*OEM_sys_set_backlight_dimming) (int index, int *value);
     OEM_sys_get_null_2, //int        (*OEM_sys_get_backlight_acl_control) (int index, int *value);
     OEM_sys_set_null_2, //int        (*OEM_sys_set_backlight_acl_control) (int index, int value);
 
@@ -280,6 +282,10 @@ static const OEM_sys_devman_plugin_interface  devman_plugin_interface_pinetrail
     OEM_sys_get_null_1, //int        (*OEM_sys_get_image_enhance_tune) (int *value);
     OEM_sys_set_null_1, //int        (*OEM_sys_set_image_enhance_tune) (int value);
 
+    OEM_sys_get_null_1, //int        (*OEM_sys_image_enhance_info) (int *value);
+
+    OEM_sys_set_null_1, //int        (*OEM_sys_set_display_frame_rate) (int value);
+
     OEM_sys_get_null_1, //int        (*OEM_sys_get_uart_path) (int *value);
     OEM_sys_set_null_1, //int        (*OEM_sys_set_uart_path) (int value);
 
@@ -293,10 +299,12 @@ static const OEM_sys_devman_plugin_interface  devman_plugin_interface_pinetrail
     OEM_sys_set_null_1, //int        (*OEM_sys_set_haptic_vibetones_oneshot) (int value);
 
     OEM_sys_get_battery_capacity, //int     (*OEM_sys_get_battery_capacity) (int *value);
+    OEM_sys_get_null_1, //int        (*OEM_sys_get_battery_capacity_raw) (int *value);
     OEM_sys_get_battery_charge_full, //int        (*OEM_sys_get_battery_charge_full) (int *value);
     OEM_sys_get_battery_charge_now, //int        (*OEM_sys_get_battery_charge_now) (int *value);
     OEM_sys_get_battery_present, //int      (*OEM_sys_get_battery_present) (int *value);
     OEM_sys_get_null_1, //int        (*OEM_sys_get_battery_health) (int *value);
+    OEM_sys_get_null_1, //int        (*OEM_sys_get_battery_polling_required) (int *value);
 
     OEM_sys_get_null_1, //int        (*OEM_sys_get_jack_charger_online) (int *value);
     OEM_sys_get_null_1, //int        (*OEM_sys_get_jack_earjack_online) (int *value);