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
This commit is contained in:
Bertrik Sikken 2008-05-20 19:20:28 +00:00
parent 3dd52e3798
commit 869fbfc1f1
2 changed files with 3 additions and 3 deletions

View File

@ -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))
{

View File

@ -22,8 +22,6 @@
#include <stdbool.h>
#define MAX_SYS_EVENTS 10
/**
* High byte = Event class definition
* Low byte = Event ID