mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue