summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-02-14 06:26:16 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-02-14 06:26:16 +0000
commit1c2aa35371aed8d895b3448dad865b913da57cfb (patch)
tree8a790ad8efe5d0abd73eaf77adc854d336ce0ef4 /apps/plugin.c
parented21ab1c8c9b16ec62933313c3d36a93d9255f62 (diff)
downloadrockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.gz
rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.zip
FS#10984 - multifont! 2 major additions:
1) seperate UI font for the remote and main displays 2) allow individual skins to load additional fonts for use in the skin (Uo to 7 extra in this first version) see CustomWPS for info on how to load a font in the skins. Code should always use FONT_UI+screen_number to get the correct user font git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 0d4d8ed0f6..46ab6e6429 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -247,6 +247,10 @@ static const struct plugin_api rockbox_api = {
247 lcd_remote_bitmap, 247 lcd_remote_bitmap,
248#endif 248#endif
249 viewport_set_defaults, 249 viewport_set_defaults,
250#ifdef HAVE_LCD_BITMAP
251 viewportmanager_theme_enable,
252 viewportmanager_theme_undo,
253#endif
250 254
251 /* list */ 255 /* list */
252 gui_synclist_init, 256 gui_synclist_init,
@@ -292,6 +296,7 @@ static const struct plugin_api rockbox_api = {
292#endif /* HAVE_BUTTON_LIGHT */ 296#endif /* HAVE_BUTTON_LIGHT */
293 297
294 /* file */ 298 /* file */
299 open_utf8,
295#ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE 300#ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE
296 (open_func)open_wrapper, 301 (open_func)open_wrapper,
297 close_wrapper, 302 close_wrapper,
@@ -325,6 +330,7 @@ static const struct plugin_api rockbox_api = {
325 create_numbered_filename, 330 create_numbered_filename,
326 file_exists, 331 file_exists,
327 strip_extension, 332 strip_extension,
333 crc_32,
328 334
329 /* dir */ 335 /* dir */
330 opendir, 336 opendir,
@@ -432,6 +438,7 @@ static const struct plugin_api rockbox_api = {
432 atoi, 438 atoi,
433 strchr, 439 strchr,
434 strcat, 440 strcat,
441 strlcat,
435 memchr, 442 memchr,
436 memcmp, 443 memcmp,
437 strcasestr, 444 strcasestr,
@@ -476,6 +483,7 @@ static const struct plugin_api rockbox_api = {
476 pcm_get_peak_buffer, 483 pcm_get_peak_buffer,
477 pcm_play_lock, 484 pcm_play_lock,
478 pcm_play_unlock, 485 pcm_play_unlock,
486 pcmbuf_beep,
479#ifdef HAVE_RECORDING 487#ifdef HAVE_RECORDING
480 &rec_freq_sampr[0], 488 &rec_freq_sampr[0],
481 pcm_init_recording, 489 pcm_init_recording,
@@ -588,6 +596,9 @@ static const struct plugin_api rockbox_api = {
588#endif 596#endif
589 597
590 /* misc */ 598 /* misc */
599#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
600 &errno,
601#endif
591 srand, 602 srand,
592 rand, 603 rand,
593 (qsort_func)qsort, 604 (qsort_func)qsort,
@@ -698,19 +709,6 @@ static const struct plugin_api rockbox_api = {
698 appsversion, 709 appsversion,
699 /* new stuff at the end, sort into place next time 710 /* new stuff at the end, sort into place next time
700 the API gets incompatible */ 711 the API gets incompatible */
701#if (CONFIG_CODEC == SWCODEC)
702 pcmbuf_beep,
703#endif
704 crc_32,
705 open_utf8,
706#ifdef HAVE_LCD_BITMAP
707 viewportmanager_theme_enable,
708 viewportmanager_theme_undo,
709#endif
710#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
711 &errno,
712#endif
713 strlcat,
714}; 712};
715 713
716int plugin_load(const char* plugin, const void* parameter) 714int plugin_load(const char* plugin, const void* parameter)