diff options
author | Hristo Kovachev <bger@rockbox.org> | 2006-01-25 18:29:56 +0000 |
---|---|---|
committer | Hristo Kovachev <bger@rockbox.org> | 2006-01-25 18:29:56 +0000 |
commit | 495c63f867a35ac2e6aab92a530a46b3ef5143b1 (patch) | |
tree | 24c4188728a3e1c5196506eab29978f5e5c4ac49 /apps/plugin.h | |
parent | 4781f1461fd7d3f91bea4ff84ca20b5e58ff53e3 (diff) | |
download | rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.tar.gz rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.zip |
New "battery benchmark" plugin by Alexander Spyridakis, modified a bit by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 157831bf19..747c9e099a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "dir.h" | 37 | #include "dir.h" |
38 | #include "kernel.h" | 38 | #include "kernel.h" |
39 | #include "button.h" | 39 | #include "button.h" |
40 | #include "usb.h" | ||
40 | #include "font.h" | 41 | #include "font.h" |
41 | #include "system.h" | 42 | #include "system.h" |
42 | #include "lcd.h" | 43 | #include "lcd.h" |
@@ -96,7 +97,7 @@ | |||
96 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 97 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
97 | 98 | ||
98 | /* increase this every time the api struct changes */ | 99 | /* increase this every time the api struct changes */ |
99 | #define PLUGIN_API_VERSION 2 | 100 | #define PLUGIN_API_VERSION 3 |
100 | 101 | ||
101 | /* update this to latest version if a change to the api struct breaks | 102 | /* update this to latest version if a change to the api struct breaks |
102 | backwards compatibility (and please take the opportunity to sort in any | 103 | backwards compatibility (and please take the opportunity to sort in any |
@@ -427,13 +428,23 @@ struct plugin_api { | |||
427 | 428 | ||
428 | /* new stuff at the end, sort into place next time | 429 | /* new stuff at the end, sort into place next time |
429 | the API gets incompatible */ | 430 | the API gets incompatible */ |
431 | |||
430 | #ifdef RB_PROFILE | 432 | #ifdef RB_PROFILE |
431 | void (*profile_thread)(void); | 433 | void (*profile_thread)(void); |
432 | void (*profstop)(void); | 434 | void (*profstop)(void); |
433 | void (*profile_func_enter)(void *this_fn, void *call_site); | 435 | void (*profile_func_enter)(void *this_fn, void *call_site); |
434 | void (*profile_func_exit)(void *this_fn, void *call_site); | 436 | void (*profile_func_exit)(void *this_fn, void *call_site); |
435 | #endif | 437 | #endif |
436 | 438 | int (*battery_time)(void); | |
439 | #ifndef SIMULATOR | ||
440 | bool (*ata_disk_is_active)(void); | ||
441 | unsigned int (*battery_voltage)(void); | ||
442 | #endif | ||
443 | void (*queue_init)(struct event_queue *q); | ||
444 | void (*queue_delete)(struct event_queue *q); | ||
445 | void (*queue_post)(struct event_queue *q, long id, void *data); | ||
446 | void (*queue_wait_w_tmo)(struct event_queue *q, struct event *ev, int ticks); | ||
447 | void (*usb_acknowledge)(long id); | ||
437 | }; | 448 | }; |
438 | 449 | ||
439 | /* plugin header */ | 450 | /* plugin header */ |