diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/misc.c | 4 | ||||
| -rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/misc.c b/apps/misc.c index 67fe268..de19c1e 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -239,7 +239,7 @@ bool clean_shutdown(void) return false; } -int default_event_handler_ex(int event, void (*callback)(void *), void *parameter) +int default_event_handler_ex(long event, void (*callback)(void *), void *parameter) { switch(event) { @@ -261,7 +261,7 @@ int default_event_handler_ex(int event, void (*callback)(void *), void *paramete return 0; } -int default_event_handler(int event) +int default_event_handler(long event) { return default_event_handler_ex(event, NULL, NULL); } diff --git a/apps/plugin.h b/apps/plugin.h index 3e72248..8cf7e63 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -192,7 +192,7 @@ struct plugin_api { void (*yield)(void); long* current_tick; int (*default_event_handler)(int event); - int (*default_event_handler_ex)(int event, void (*callback)(void *), void *parameter); + int (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); int (*create_thread)(void* function, void* stack, int stack_size, const char *name); void (*remove_thread)(int threadnum); void (*reset_poweroff_timer)(void); |