From 2081fa9c85f1d8f9b9b69b055964e89809804adf Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Wed, 27 Mar 2013 15:19:33 -0700 Subject: [PATCH] added display count call --- device-manager-plugin-ivi.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/device-manager-plugin-ivi.c b/device-manager-plugin-ivi.c index eec03eb..54c10ee 100644 --- a/device-manager-plugin-ivi.c +++ b/device-manager-plugin-ivi.c @@ -210,6 +210,16 @@ int OEM_sys_get_battery_charge_now(int *value) return ret; } +int OEM_sys_get_display_count(int *value) +{ + int ret = -1; +// ERR("get diplay count"); + + *value = 1; + + return ret; +} + int OEM_sys_get_null_1(int *value) { int ret = -1; @@ -273,7 +283,7 @@ int OEM_sys_get_null_3(char *node) * defined */ 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_display_count, //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_null_2, //int (*OEM_sys_get_backlight_max_brightness) (int index, int *value); -- 2.7.4