summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 4dbd9d04c0..31e1c77cb7 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);
@@ -650,7 +649,7 @@ struct plugin_api {
650 int (*memcmp)(const void *s1, const void *s2, size_t n); 649 int (*memcmp)(const void *s1, const void *s2, size_t n);
651 char *(*strcasestr) (const char* phaystack, const char* pneedle); 650 char *(*strcasestr) (const char* phaystack, const char* pneedle);
652 char* (*strtok_r)(char *ptr, const char *sep, char **end); 651 char* (*strtok_r)(char *ptr, const char *sep, char **end);
653 char* (*output_dyn_value)(char *buf, int buf_size, int value, 652 char* (*output_dyn_value)(char *buf, int buf_size, int64_t value,
654 const unsigned char * const *units, 653 const unsigned char * const *units,
655 unsigned int unit_count, bool binary_scale); 654 unsigned int unit_count, bool binary_scale);
656 /* unicode stuff */ 655 /* unicode stuff */
@@ -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,16 +977,8 @@ 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 980
973 void (*tagcache_commit_finalize)(void); 981 int (*talk_fullpath)(const char* path, bool enqueue);
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}; 982};
983 983
984/* plugin header */ 984/* plugin header */