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:
parent
3dd52e3798
commit
869fbfc1f1
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define MAX_SYS_EVENTS 10
|
||||
|
||||
/**
|
||||
* High byte = Event class definition
|
||||
* Low byte = Event ID
|
||||
|
|
Loading…
Reference in New Issue