summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index fd01e15bbd..e91c866098 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2002 Bjรถrn Stenberg 10 * Copyright (C) 2002 Bjrn Stenberg
11 * 11 *
12 * This program is free software; you can redistribute it and/or 12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License 13 * modify it under the terms of the GNU General Public License
@@ -131,12 +131,12 @@ void* plugin_get_buffer(size_t *buffer_size);
131#define PLUGIN_MAGIC 0x526F634B /* RocK */ 131#define PLUGIN_MAGIC 0x526F634B /* RocK */
132 132
133/* increase this every time the api struct changes */ 133/* increase this every time the api struct changes */
134#define PLUGIN_API_VERSION 128 134#define PLUGIN_API_VERSION 129
135 135
136/* update this to latest version if a change to the api struct breaks 136/* update this to latest version if a change to the api struct breaks
137 backwards compatibility (and please take the opportunity to sort in any 137 backwards compatibility (and please take the opportunity to sort in any
138 new function which are "waiting" at the end of the function table) */ 138 new function which are "waiting" at the end of the function table) */
139#define PLUGIN_MIN_API_VERSION 127 139#define PLUGIN_MIN_API_VERSION 129
140 140
141/* plugin return codes */ 141/* plugin return codes */
142enum plugin_status { 142enum plugin_status {
@@ -244,6 +244,7 @@ struct plugin_api {
244 int min_shown, int max_shown, 244 int min_shown, int max_shown,
245 unsigned flags); 245 unsigned flags);
246#endif /* HAVE_LCD_BITMAP */ 246#endif /* HAVE_LCD_BITMAP */
247 const char* (*get_codepage_name)(int cp);
247 248
248 /* backlight */ 249 /* backlight */
249 /* The backlight_* functions must be present in the API regardless whether 250 /* The backlight_* functions must be present in the API regardless whether
@@ -408,13 +409,13 @@ struct plugin_api {
408 long (*default_event_handler)(long event); 409 long (*default_event_handler)(long event);
409 long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); 410 long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter);
410 struct thread_entry* threads; 411 struct thread_entry* threads;
411 struct thread_entry* (*create_thread)(void (*function)(void), void* stack, 412 unsigned int (*create_thread)(void (*function)(void), void* stack,
412 size_t stack_size, unsigned flags, 413 size_t stack_size, unsigned flags,
413 const char *name 414 const char *name
414 IF_PRIO(, int priority) 415 IF_PRIO(, int priority)
415 IF_COP(, unsigned int core)); 416 IF_COP(, unsigned int core));
416 void (*thread_exit)(void); 417 void (*thread_exit)(void);
417 void (*thread_wait)(struct thread_entry *thread); 418 void (*thread_wait)(unsigned int thread_id);
418#if CONFIG_CODEC == SWCODEC 419#if CONFIG_CODEC == SWCODEC
419 void (*mutex_init)(struct mutex *m); 420 void (*mutex_init)(struct mutex *m);
420 void (*mutex_lock)(struct mutex *m); 421 void (*mutex_lock)(struct mutex *m);
@@ -456,7 +457,7 @@ struct plugin_api {
456#if CONFIG_CODEC == SWCODEC 457#if CONFIG_CODEC == SWCODEC
457 void (*queue_enable_queue_send)(struct event_queue *q, 458 void (*queue_enable_queue_send)(struct event_queue *q,
458 struct queue_sender_list *send, 459 struct queue_sender_list *send,
459 struct thread_entry *owner); 460 unsigned int thread_id);
460 bool (*queue_empty)(const struct event_queue *q); 461 bool (*queue_empty)(const struct event_queue *q);
461 void (*queue_wait)(struct event_queue *q, struct queue_event *ev); 462 void (*queue_wait)(struct event_queue *q, struct queue_event *ev);
462 intptr_t (*queue_send)(struct event_queue *q, long id, 463 intptr_t (*queue_send)(struct event_queue *q, long id,
@@ -616,6 +617,7 @@ struct plugin_api {
616 void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw); 617 void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw);
617 618
618 /* options */ 619 /* options */
620 const struct settings_list* (*get_settings_list)(int*count);
619 const struct settings_list* (*find_setting)(const void* variable, int *id); 621 const struct settings_list* (*find_setting)(const void* variable, int *id);
620 bool (*option_screen)(const struct settings_list *setting, 622 bool (*option_screen)(const struct settings_list *setting,
621 struct viewport parent[NB_SCREENS], 623 struct viewport parent[NB_SCREENS],
@@ -771,7 +773,7 @@ struct plugin_api {
771 char *buf, int buflen); 773 char *buf, int buflen);
772#endif 774#endif
773 775
774 void (*thread_thaw)(struct thread_entry *thread); 776 void (*thread_thaw)(unsigned int thread_id);
775 777
776#ifdef HAVE_SEMAPHORE_OBJECTS 778#ifdef HAVE_SEMAPHORE_OBJECTS
777 void (*semaphore_init)(struct semaphore *s, int max, int start); 779 void (*semaphore_init)(struct semaphore *s, int max, int start);
@@ -782,8 +784,6 @@ struct plugin_api {
782 const char *appsversion; 784 const char *appsversion;
783 /* new stuff at the end, sort into place next time 785 /* new stuff at the end, sort into place next time
784 the API gets incompatible */ 786 the API gets incompatible */
785 const struct settings_list* (*get_settings_list)(int*count);
786 const char* (*get_codepage_name)(int cp);
787}; 787};
788 788
789/* plugin header */ 789/* plugin header */