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.tar.gz rockbox-a67e5d89efe6c3fcf5a2eaf27aac1c14f024ee27.zip |
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 b27b5dee4c..c7935dbc74 100644 --- a/firmware/export/events.h +++ b/firmware/export/events.h | |||
@@ -43,9 +43,9 @@ enum { | |||
43 | }; | 43 | }; |
44 | 44 | ||
45 | 45 | ||
46 | bool add_event(unsigned short id, void (*handler)); | 46 | bool add_event(unsigned short id, bool oneshot, void (*handler)); |
47 | void remove_event(unsigned short id, void (*handler)); | 47 | void remove_event(unsigned short id, void (*handler)); |
48 | void send_event(unsigned short id, bool oneshot, void *data); | 48 | void send_event(unsigned short id, void *data); |
49 | 49 | ||
50 | #endif | 50 | #endif |
51 | 51 | ||