summaryrefslogtreecommitdiffstats
path: root/firmware/export/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/events.h')
-rw-r--r--firmware/export/events.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/firmware/export/events.h b/firmware/export/events.h
index 40447d5533..cad0fad895 100644
--- a/firmware/export/events.h
+++ b/firmware/export/events.h
@@ -24,6 +24,10 @@
#include <stdbool.h>
+/** Only CLASS defines and firmware/ level events should be defined here.
+ * apps/ level events are defined in apps/appevents.h
+ */
+
/**
* High byte = Event class definition
* Low byte = Event ID
@@ -34,17 +38,6 @@
#define EVENT_CLASS_BUFFERING 0x0400
#define EVENT_CLASS_GUI 0x0800
-/**
- * Because same playback events are used in mpeg.c and playback.c, define
- * them here to prevent cluttering and ifdefs.
- */
-enum {
- PLAYBACK_EVENT_TRACK_BUFFER = (EVENT_CLASS_PLAYBACK|1),
- PLAYBACK_EVENT_TRACK_FINISH,
- PLAYBACK_EVENT_TRACK_CHANGE,
-};
-
-
bool add_event(unsigned short id, bool oneshot, void (*handler));
void remove_event(unsigned short id, void (*handler));
void send_event(unsigned short id, void *data);