diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 66c895d0db..135a068898 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -163,7 +163,7 @@ int plugin_open(const char *plugin, const char *parameter); | |||
163 | * when this happens please take the opportunity to sort in | 163 | * when this happens please take the opportunity to sort in |
164 | * any new functions "waiting" at the end of the list. | 164 | * any new functions "waiting" at the end of the list. |
165 | */ | 165 | */ |
166 | #define PLUGIN_API_VERSION 270 | 166 | #define PLUGIN_API_VERSION 271 |
167 | 167 | ||
168 | /* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */ | 168 | /* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */ |
169 | 169 | ||
@@ -405,8 +405,6 @@ struct plugin_api { | |||
405 | bool (*yesno_pop)(const char* text); | 405 | bool (*yesno_pop)(const char* text); |
406 | 406 | ||
407 | /* action handling */ | 407 | /* action handling */ |
408 | bool (*list_do_action)(int context, int timeout, | ||
409 | struct gui_synclist *lists, int *action); | ||
410 | int (*get_custom_action)(int context,int timeout, | 408 | int (*get_custom_action)(int context,int timeout, |
411 | const struct button_mapping* (*get_context_map)(int)); | 409 | const struct button_mapping* (*get_context_map)(int)); |
412 | int (*get_action)(int context, int timeout); | 410 | int (*get_action)(int context, int timeout); |
@@ -479,6 +477,7 @@ struct plugin_api { | |||
479 | uint32_t (*crc_32r)(const void *src, uint32_t len, uint32_t crc32); | 477 | uint32_t (*crc_32r)(const void *src, uint32_t len, uint32_t crc32); |
480 | 478 | ||
481 | int (*filetype_get_attr)(const char* file); | 479 | int (*filetype_get_attr)(const char* file); |
480 | char* (*filetype_get_plugin)(int attr, char *buffer, size_t buffer_len); | ||
482 | 481 | ||
483 | /* dir */ | 482 | /* dir */ |
484 | DIR * (*opendir)(const char *dirname); | 483 | DIR * (*opendir)(const char *dirname); |
@@ -662,6 +661,9 @@ struct plugin_api { | |||
662 | unsigned long (*utf8length)(const unsigned char *utf8); | 661 | unsigned long (*utf8length)(const unsigned char *utf8); |
663 | int (*utf8seek)(const unsigned char* utf8, int offset); | 662 | int (*utf8seek)(const unsigned char* utf8, int offset); |
664 | 663 | ||
664 | /* language */ | ||
665 | int (*lang_is_rtl)(void); | ||
666 | |||
665 | /* the buflib memory management library */ | 667 | /* the buflib memory management library */ |
666 | void (*buflib_init)(struct buflib_context* ctx, void* buf, size_t size); | 668 | void (*buflib_init)(struct buflib_context* ctx, void* buf, size_t size); |
667 | size_t (*buflib_available)(struct buflib_context* ctx); | 669 | size_t (*buflib_available)(struct buflib_context* ctx); |
@@ -761,7 +763,7 @@ struct plugin_api { | |||
761 | 763 | ||
762 | /* metadata */ | 764 | /* metadata */ |
763 | bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname); | 765 | bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname); |
764 | bool (*mp3info)(struct mp3entry *entry, const char *filename); | 766 | const char* (*get_codec_string)(int codectype); |
765 | int (*count_mp3_frames)(int fd, int startpos, int filesize, | 767 | int (*count_mp3_frames)(int fd, int startpos, int filesize, |
766 | void (*progressfunc)(int), | 768 | void (*progressfunc)(int), |
767 | unsigned char* buf, size_t buflen); | 769 | unsigned char* buf, size_t buflen); |
@@ -782,6 +784,7 @@ struct plugin_api { | |||
782 | void (*tagcache_search_finish)(struct tagcache_search *tcs); | 784 | void (*tagcache_search_finish)(struct tagcache_search *tcs); |
783 | long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag); | 785 | long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag); |
784 | struct tagcache_stat* (*tagcache_get_stat)(void); | 786 | struct tagcache_stat* (*tagcache_get_stat)(void); |
787 | void (*tagcache_commit_finalize)(void); | ||
785 | #if defined(HAVE_TC_RAMCACHE) | 788 | #if defined(HAVE_TC_RAMCACHE) |
786 | bool (*tagcache_is_in_ram)(void); | 789 | bool (*tagcache_is_in_ram)(void); |
787 | #if defined(HAVE_DIRCACHE) | 790 | #if defined(HAVE_DIRCACHE) |
@@ -801,6 +804,11 @@ struct plugin_api { | |||
801 | int (*playlist_get_resume_info)(int *resume_index); | 804 | int (*playlist_get_resume_info)(int *resume_index); |
802 | int (*playlist_get_track_info)(struct playlist_info* playlist, int index, | 805 | int (*playlist_get_track_info)(struct playlist_info* playlist, int index, |
803 | struct playlist_track_info* info); | 806 | struct playlist_track_info* info); |
807 | int (*playlist_get_first_index)(const struct playlist_info* playlist); | ||
808 | int (*playlist_get_display_index)(void); | ||
809 | bool (*playlist_entries_iterate)(const char *filename, | ||
810 | struct playlist_insert_context *pl_context, | ||
811 | bool (*action_cb)(const char *file_name)); | ||
804 | int (*playlist_amount)(void); | 812 | int (*playlist_amount)(void); |
805 | int (*playlist_resume)(void); | 813 | int (*playlist_resume)(void); |
806 | void (*playlist_resume_track)(int start_index, unsigned int crc, | 814 | void (*playlist_resume_track)(int start_index, unsigned int crc, |
@@ -969,17 +977,6 @@ struct plugin_api { | |||
969 | #endif | 977 | #endif |
970 | /* new stuff at the end, sort into place next time | 978 | /* new stuff at the end, sort into place next time |
971 | the API gets incompatible */ | 979 | the API gets incompatible */ |
972 | #ifdef HAVE_TAGCACHE | ||
973 | void (*tagcache_commit_finalize)(void); | ||
974 | #endif | ||
975 | int (*playlist_get_first_index)(const struct playlist_info* playlist); | ||
976 | int (*playlist_get_display_index)(void); | ||
977 | char* (*filetype_get_plugin)(int attr, char *buffer, size_t buffer_len); | ||
978 | bool (*playlist_entries_iterate)(const char *filename, | ||
979 | struct playlist_insert_context *pl_context, | ||
980 | bool (*action_cb)(const char *file_name)); | ||
981 | int (*lang_is_rtl)(void); | ||
982 | const char* (*get_codec_string)(int codectype); | ||
983 | }; | 980 | }; |
984 | 981 | ||
985 | /* plugin header */ | 982 | /* plugin header */ |