aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 21bd727..d4cce1d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -12,6 +12,8 @@
extern uint8_t no_net;
+typedef int (*func_t)(int, char**);
+
struct MemoryStruct {
uint8_t* memory;
size_t size;
@@ -19,7 +21,7 @@ struct MemoryStruct {
struct Command {
char* name;
- int (*func)(int, char**);
+ func_t func;
char* description;
};