summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'request.h')
-rw-r--r--request.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/request.h b/request.h
index 6c5925a..cbf7ecb 100644
--- a/request.h
+++ b/request.h
@@ -1,14 +1,8 @@
#ifndef REQUEST_H
#define REQUEST_H
-#include <stdint.h>
+#include "pub_callbacks.h"
-typedef uint8_t byte;
-
-typedef struct {
- byte opcode;
-
- byte data[512];
-} request_t;
+typedef int (*callback_t)(const byte *, int);
#endif /* REQUEST_H */