summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 1b12011c9a..5ac4aa7cc2 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -119,7 +119,7 @@
119#define PLUGIN_MAGIC 0x526F634B /* RocK */ 119#define PLUGIN_MAGIC 0x526F634B /* RocK */
120 120
121/* increase this every time the api struct changes */ 121/* increase this every time the api struct changes */
122#define PLUGIN_API_VERSION 91 122#define PLUGIN_API_VERSION 92
123 123
124/* update this to latest version if a change to the api struct breaks 124/* update this to latest version if a change to the api struct breaks
125 backwards compatibility (and please take the opportunity to sort in any 125 backwards compatibility (and please take the opportunity to sort in any
@@ -648,7 +648,7 @@ struct plugin_api {
648 648
649 void (*thread_wait)(struct thread_entry *thread); 649 void (*thread_wait)(struct thread_entry *thread);
650 650
651#ifdef PROC_NEEDS_CACHEALIGN 651#if (CONFIG_CODEC == SWCODEC)
652 size_t (*align_buffer)(void **start, size_t size, size_t align); 652 size_t (*align_buffer)(void **start, size_t size, size_t align);
653#endif 653#endif
654 654
@@ -697,6 +697,25 @@ struct plugin_api {
697 bool (*search_albumart_files)(const struct mp3entry *id3, const char *size_string, 697 bool (*search_albumart_files)(const struct mp3entry *id3, const char *size_string,
698 char *buf, int buflen); 698 char *buf, int buflen);
699#endif 699#endif
700
701#if CONFIG_CODEC == SWCODEC
702 void (*pcm_play_lock)(void);
703 void (*pcm_play_unlock)(void);
704 void (*queue_enable_queue_send)(struct event_queue *q,
705 struct queue_sender_list *send);
706 bool (*queue_empty)(const struct event_queue *q);
707 void (*queue_wait)(struct event_queue *q, struct queue_event *ev);
708 intptr_t (*queue_send)(struct event_queue *q, long id,
709 intptr_t data);
710 void (*queue_reply)(struct event_queue *q, intptr_t retval);
711#ifndef HAVE_FLASH_STORAGE
712 void (*ata_spin)(void);
713#endif
714#ifdef HAVE_SCHEDULER_BOOSTCTRL
715 void (*trigger_cpu_boost)(void);
716 void (*cancel_cpu_boost)(void);
717#endif
718#endif /* CONFIG_CODEC == SWCODEC */
700}; 719};
701 720
702/* plugin header */ 721/* plugin header */