diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-17 05:22:53 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-17 05:22:53 +0000 |
| commit | a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27 (patch) | |
| tree | 2e62c72ea2e45410216bdbd62b70101db0f4e7ca /firmware/export | |
| parent | c6b6bad18fcd68182574086c2eb2a1da30d36d25 (diff) | |
| download | rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.zip rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.tar.gz rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.tar.bz2 rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.tar.xz | |
It makes more sense for the callback registrar to decide if its a "oneshot" then the callback caller.
(Doing it this way means playback could(/should?) registar a disk spinup callback at init which is called every spinup without needing to be reregistered)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/events.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/events.h b/firmware/export/events.h index b27b5de..c7935db 100644 --- a/firmware/export/events.h +++ b/firmware/export/events.h @@ -43,9 +43,9 @@ enum { }; -bool add_event(unsigned short id, void (*handler)); +bool add_event(unsigned short id, bool oneshot, void (*handler)); void remove_event(unsigned short id, void (*handler)); -void send_event(unsigned short id, bool oneshot, void *data); +void send_event(unsigned short id, void *data); #endif |