summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-05-01 05:45:18 +0000
committerZakk Roberts <midk@rockbox.org>2006-05-01 05:45:18 +0000
commit07fcf77cb0b734135fdc730a164f3333d6c703e5 (patch)
treeb30cffeb322adff6c09033c482ec3e0288167aef /apps/plugin.h
parent0d6b5557a113afab41c7ef239c9ce5ddabebea8b (diff)
downloadrockbox-07fcf77cb0b734135fdc730a164f3333d6c703e5.tar.gz
rockbox-07fcf77cb0b734135fdc730a164f3333d6c703e5.zip
Patch #5056 by Jonathan Gordon, with rework and additions by me: Updated Viewer plugin. Replaces annoying mode-toggle key-combos with a settings menu, including a new 'Scroll by Line' option. I've also added a 'hands-free' auto-scroll feature and added lcd_setmargins to the plugin API, since we need it here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9844 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index d39e92de9c..a6807284f8 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -106,7 +106,7 @@
106#define PLUGIN_API_VERSION 18 106#define PLUGIN_API_VERSION 18
107 107
108/* update this to latest version if a change to the api struct breaks 108/* update this to latest version if a change to the api struct breaks
109 backwards compatibility (and please take the opportunity to sort in any 109 backwards compatibility (and please take the opportunity to sort in any
110 new function which are "waiting" at the end of the function table) */ 110 new function which are "waiting" at the end of the function table) */
111#define PLUGIN_MIN_API_VERSION 14 111#define PLUGIN_MIN_API_VERSION 14
112 112
@@ -233,7 +233,7 @@ struct plugin_api {
233 long (*button_get_w_tmo)(int ticks); 233 long (*button_get_w_tmo)(int ticks);
234 int (*button_status)(void); 234 int (*button_status)(void);
235 void (*button_clear_queue)(void); 235 void (*button_clear_queue)(void);
236#ifdef HAS_BUTTON_HOLD 236#ifdef HAS_BUTTON_HOLD
237 bool (*button_hold)(void); 237 bool (*button_hold)(void);
238#endif 238#endif
239 239
@@ -255,7 +255,7 @@ struct plugin_api {
255 void (*ata_sleep)(void); 255 void (*ata_sleep)(void);
256 bool (*ata_disk_is_active)(void); 256 bool (*ata_disk_is_active)(void);
257#endif 257#endif
258 258
259 /* dir */ 259 /* dir */
260 DIR* (*PREFIX(opendir))(const char* name); 260 DIR* (*PREFIX(opendir))(const char* name);
261 int (*PREFIX(closedir))(DIR* dir); 261 int (*PREFIX(closedir))(DIR* dir);
@@ -376,7 +376,7 @@ struct plugin_api {
376#endif 376#endif
377#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ 377#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \
378 (CONFIG_CODEC == SWCODEC) 378 (CONFIG_CODEC == SWCODEC)
379 void (*sound_set_pitch)(int pitch); 379 void (*sound_set_pitch)(int pitch);
380#endif 380#endif
381 381
382 /* MAS communication */ 382 /* MAS communication */
@@ -408,8 +408,8 @@ struct plugin_api {
408 void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void)); 408 void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void));
409 void (*menu_set_cursor)(int menu, int position); 409 void (*menu_set_cursor)(int menu, int position);
410 410
411 bool (*set_option)(const char* string, void* variable, 411 bool (*set_option)(const char* string, void* variable,
412 enum optiontype type, const struct opt_items* options, 412 enum optiontype type, const struct opt_items* options,
413 int numoptions, void (*function)(int)); 413 int numoptions, void (*function)(int));
414 414
415 415
@@ -473,7 +473,7 @@ struct plugin_api {
473 struct tree_context* (*tree_get_context)(void); 473 struct tree_context* (*tree_get_context)(void);
474 474
475 /* new stuff at the end, sort into place next time 475 /* new stuff at the end, sort into place next time
476 the API gets incompatible */ 476 the API gets incompatible */
477 bool (*set_sound)(const unsigned char * string, 477 bool (*set_sound)(const unsigned char * string,
478 int* variable, int setting); 478 int* variable, int setting);
479#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR) 479#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR)
@@ -510,6 +510,10 @@ struct plugin_api {
510 void (*gui_synclist_scroll_left)(struct gui_synclist * lists); 510 void (*gui_synclist_scroll_left)(struct gui_synclist * lists);
511#endif 511#endif
512 unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button); 512 unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button);
513
514#ifdef HAVE_LCD_BITMAP
515 void (*lcd_setmargins)(int x, int y);
516#endif
513}; 517};
514 518
515/* plugin header */ 519/* plugin header */