aboutsummaryrefslogtreecommitdiff
path: root/src/wine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wine.h')
-rw-r--r--src/wine.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/wine.h b/src/wine.h
index 0a634d2..48994ba 100644
--- a/src/wine.h
+++ b/src/wine.h
@@ -4,6 +4,8 @@
#define WINEBIN "/bin/wine"
#define PROTONBIN "/dist/bin/wine"
+#include "command.h"
+
// enum type used to represent if the installed wine version is proton or normal wine
// this is mainly used to know wheither to call WINEBIN or PROTONBIN
enum wine_type_t {
@@ -12,13 +14,13 @@ enum wine_type_t {
WINE_PROTON
};
-int wine(int, char**);
-int wine_download(int, char**);
-int wine_list(int, char**);
-int wine_run(int, char**);
-int wine_installed(int, char**);
-int wine_env(int, char**);
-int wine_help(int, char**);
+COMMAND_GROUP(wine);
+COMMAND(wine, download);
+COMMAND(wine, list);
+COMMAND(wine, run);
+COMMAND(wine, installed);
+COMMAND(wine, env);
+COMMAND(wine, help);
enum wine_type_t check_wine_ver(char*, size_t);