summaryrefslogtreecommitdiffstats
path: root/firmware/events.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-05-20 19:20:28 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-05-20 19:20:28 +0000
commit869fbfc1f13acae077f63e993fb0aea4efed4011 (patch)
treebc2fd3833559f56e0f0d43a1b91d83b9cbe11677 /firmware/events.c
parent3dd52e3798516f5fa358d8660fa75b176b9cfb43 (diff)
downloadrockbox-869fbfc1f13acae077f63e993fb0aea4efed4011.tar.gz
rockbox-869fbfc1f13acae077f63e993fb0aea4efed4011.tar.bz2
rockbox-869fbfc1f13acae077f63e993fb0aea4efed4011.zip
Made events table static and moved MAX_SYS_EVENTS from events.c to events.h to make it private.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17586 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/events.c')
-rw-r--r--firmware/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/events.c b/firmware/events.c
index 12f5ab1c8d..f9052958d6 100644
--- a/firmware/events.c
+++ b/firmware/events.c
@@ -21,13 +21,15 @@
#include "events.h"
#include "panic.h"
+#define MAX_SYS_EVENTS 10
+
struct sysevent {
unsigned short id;
bool oneshot;
void (*callback)(void *data);
};
-struct sysevent events[MAX_SYS_EVENTS];
+static struct sysevent events[MAX_SYS_EVENTS];
bool add_event(unsigned short id, bool oneshot, void (*handler))
{