aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..8b9d95b
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,28 @@
+#ifndef COMMON_H
+#define COMMON_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+#define ARRAY_LEN(arr) sizeof(arr) / sizeof(arr[0])
+
+#define WINE_API "https://lutris.net/api/runners/wine"
+#define DXVK_API "https://api.github.com/repos/lutris/dxvk/releases"
+
+#define USER_AGENT NAME "/" VERSION
+
+
+struct MemoryStruct {
+ uint8_t* memory;
+ size_t size;
+};
+
+struct Command {
+ char* name;
+ int (*func)(int, char**);
+ char* description;
+};
+
+void print_help(const struct Command*, size_t);
+
+#endif \ No newline at end of file