diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-10-20 21:54:44 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-10-20 21:54:44 +0000 |
| commit | 774bacc692b4d5c7b769bb88d24e182db9e4656f (patch) | |
| tree | 07c5ed05c9d46145c783bd1de5062731e6babb32 /firmware/export | |
| parent | 872852639fc52bcdb2cc8199fed60f81c7cad1f9 (diff) | |
| download | rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.zip rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.tar.gz rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.tar.bz2 rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.tar.xz | |
Correct wrong usage of event callbacks all over the place. It's not supposed to return anything, and should take a data parameter.
Fixing it because correcting the event api prototypes causes many warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/ata_idle_notify.h | 6 | ||||
| -rw-r--r-- | firmware/export/events.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index 18f1648..348165f 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h @@ -48,11 +48,9 @@ enum { && (CONFIG_NAND == NAND_IFP7XX)) \ && !defined(BOOTLOADER) -typedef bool (*storage_idle_notify)(void); - -extern void register_storage_idle_func(storage_idle_notify function); +extern void register_storage_idle_func(void (*function)(void *data)); #if USING_STORAGE_CALLBACK -extern void unregister_storage_idle_func(storage_idle_notify function, bool run); +extern void unregister_storage_idle_func(void (*function)(void *data), bool run); extern bool call_storage_idle_notifys(bool force); #else #define unregister_storage_idle_func(f,r) diff --git a/firmware/export/events.h b/firmware/export/events.h index cad0fad..694566a 100644 --- a/firmware/export/events.h +++ b/firmware/export/events.h @@ -38,8 +38,8 @@ #define EVENT_CLASS_BUFFERING 0x0400 #define EVENT_CLASS_GUI 0x0800 -bool add_event(unsigned short id, bool oneshot, void (*handler)); -void remove_event(unsigned short id, void (*handler)); +bool add_event(unsigned short id, bool oneshot, void (*handler)(void *data)); +void remove_event(unsigned short id, void (*handler)(void *data)); void send_event(unsigned short id, void *data); #endif |