summaryrefslogtreecommitdiff
path: root/pub_callbacks.h
diff options
context:
space:
mode:
Diffstat (limited to 'pub_callbacks.h')
-rw-r--r--pub_callbacks.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/pub_callbacks.h b/pub_callbacks.h
new file mode 100644
index 0000000..a8f6d34
--- /dev/null
+++ b/pub_callbacks.h
@@ -0,0 +1,26 @@
+#ifndef PUB_CALLBACKS_H
+#define PUB_CALLBACKS_H
+
+#include <stdint.h>
+
+typedef uint8_t byte;
+
+typedef struct {
+ byte opcode;
+
+ byte data[512];
+} request_t;
+
+enum {
+ CALLBACK_LOAD_URL,
+ CALLBACK_PAUSE,
+ CALLBACK_QUIT,
+ CALLBACK_SND_UP,
+ CALLBACK_SND_DOWN,
+ CALLBACK_FULLSCREEN,
+ CALLBACK_MUTE,
+
+ CALLBACK_COUNT
+};
+
+#endif /* PUB_CALLBACKS_H */