diff options
author | Hristo Kovachev <bger@rockbox.org> | 2006-04-03 08:51:08 +0000 |
---|---|---|
committer | Hristo Kovachev <bger@rockbox.org> | 2006-04-03 08:51:08 +0000 |
commit | 38deb8f13a9896f2d6eb884c6a8bbc9b10001255 (patch) | |
tree | 6e0b2629bec1f6ebd83671230652da304dcf0ff8 /apps/plugin.h | |
parent | defbc69b2b2a576d06e718deef73aa41b5376390 (diff) | |
download | rockbox-38deb8f13a9896f2d6eb884c6a8bbc9b10001255.tar.gz rockbox-38deb8f13a9896f2d6eb884c6a8bbc9b10001255.zip |
Patch #4864 by Jonathan Gordon: text editor plugin, with some changes by me.
Also correct a var clash between the rockbox's gui api and doom plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 4061346eba..d39e92de9c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -67,6 +67,7 @@ | |||
67 | #include "sound.h" | 67 | #include "sound.h" |
68 | #include "menu.h" | 68 | #include "menu.h" |
69 | #include "rbunicode.h" | 69 | #include "rbunicode.h" |
70 | #include "list.h" | ||
70 | 71 | ||
71 | #ifdef HAVE_REMOTE_LCD | 72 | #ifdef HAVE_REMOTE_LCD |
72 | #include "lcd-remote.h" | 73 | #include "lcd-remote.h" |
@@ -102,7 +103,7 @@ | |||
102 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 103 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
103 | 104 | ||
104 | /* increase this every time the api struct changes */ | 105 | /* increase this every time the api struct changes */ |
105 | #define PLUGIN_API_VERSION 17 | 106 | #define PLUGIN_API_VERSION 18 |
106 | 107 | ||
107 | /* 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 |
108 | backwards compatibility (and please take the opportunity to sort in any | 109 | backwards compatibility (and please take the opportunity to sort in any |
@@ -483,6 +484,32 @@ struct plugin_api { | |||
483 | 484 | ||
484 | int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap); | 485 | int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap); |
485 | void *(*memchr)(const void *s1, int c, size_t n); | 486 | void *(*memchr)(const void *s1, int c, size_t n); |
487 | |||
488 | /* list */ | ||
489 | void (*gui_synclist_init)(struct gui_synclist * lists, | ||
490 | list_get_name callback_get_item_name,void * data); | ||
491 | void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); | ||
492 | void (*gui_synclist_set_icon_callback)(struct gui_synclist * lists, list_get_icon icon_callback); | ||
493 | int (*gui_synclist_get_nb_items)(struct gui_synclist * lists); | ||
494 | int (*gui_synclist_get_sel_pos)(struct gui_synclist * lists); | ||
495 | void (*gui_synclist_draw)(struct gui_synclist * lists); | ||
496 | void (*gui_synclist_select_item)(struct gui_synclist * lists, | ||
497 | int item_number); | ||
498 | void (*gui_synclist_select_next)(struct gui_synclist * lists); | ||
499 | void (*gui_synclist_select_previous)(struct gui_synclist * lists); | ||
500 | void (*gui_synclist_select_next_page)(struct gui_synclist * lists, | ||
501 | enum screen_type screen); | ||
502 | void (*gui_synclist_select_previous_page)(struct gui_synclist * lists, | ||
503 | enum screen_type screen); | ||
504 | void (*gui_synclist_add_item)(struct gui_synclist * lists); | ||
505 | void (*gui_synclist_del_item)(struct gui_synclist * lists); | ||
506 | void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); | ||
507 | void (*gui_synclist_flash)(struct gui_synclist * lists); | ||
508 | #ifdef HAVE_LCD_BITMAP | ||
509 | void (*gui_synclist_scroll_right)(struct gui_synclist * lists); | ||
510 | void (*gui_synclist_scroll_left)(struct gui_synclist * lists); | ||
511 | #endif | ||
512 | unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button); | ||
486 | }; | 513 | }; |
487 | 514 | ||
488 | /* plugin header */ | 515 | /* plugin header */ |