Update of /cvsroot/rockbox/apps
In directory labb.contactor.se:/var/tmp/cvs-serv32037
Modified Files:
plugin.c plugin.h
Log Message:
Added more functions to the plugin API.
Index: plugin.c
===================================================================
RCS file: /cvsroot/rockbox/apps/plugin.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- plugin.c 16 Jun 2004 19:35:20 -0000 1.28
+++ plugin.c 18 Jun 2004 09:03:04 -0000 1.29
@@ -233,6 +233,13 @@
#endif
battery_level,
set_time,
+
+ backlight_on,
+ backlight_off,
+
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon,
+#endif
};
int plugin_load(char* plugin, void* parameter)
Index: plugin.h
===================================================================
RCS file: /cvsroot/rockbox/apps/plugin.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- plugin.h 16 Jun 2004 19:35:20 -0000 1.31
+++ plugin.h 18 Jun 2004 09:03:04 -0000 1.32
@@ -56,7 +56,7 @@
#endif
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 16
+#define PLUGIN_API_VERSION 17
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -245,6 +245,7 @@
#ifdef HAVE_LCD_BITMAP
struct font* (*font_get)(int font);
#endif
+
#if defined(DEBUG) || defined(SIMULATOR)
void (*debugf)(char *fmt, ...);
#endif
@@ -267,6 +268,13 @@
#endif
int (*battery_level)(void);
int (*set_time)(struct tm *tm);
+
+ void (*backlight_on)(void);
+ void (*backlight_off)(void);
+
+#ifdef HAVE_LCD_CHARCELLS
+ void (*lcd_icon)(int icon, bool enable);
+#endif
};
/* defined by the plugin loader (plugin.c) */
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs
|