aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/globs.h3
-rw-r--r--include/pkgit_lua.h8
2 files changed, 10 insertions, 1 deletions
diff --git a/include/globs.h b/include/globs.h
index bec1dc9..9416923 100644
--- a/include/globs.h
+++ b/include/globs.h
@@ -24,7 +24,7 @@
#include "str.h"
-#define VERSION "1.4.0_INDEV"
+#define VERSION "1.2.0_INDEV"
#define RED "\x1b[0;31m"
#define GREEN "\x1b[0;32m"
#define YELLOW "\x1b[0;33m"
@@ -121,6 +121,7 @@ typedef struct {
extern cli_flags_t flags;
extern config_t cfg;
extern install_dirs_t inst_dirs;
+extern str new_arg_str;
void init_vars(void);
void free_vars(void);
diff --git a/include/pkgit_lua.h b/include/pkgit_lua.h
index 05b9ff6..f5f86a1 100644
--- a/include/pkgit_lua.h
+++ b/include/pkgit_lua.h
@@ -51,9 +51,17 @@ void lua_isnt_type(char* variable, char* type);
void bldit_isnt_type(char* variable, char* type);
bool lua_try_function(lua_State *L, char *lua_file, char *fname);
bool lua_try_table(lua_State *L, char *lua_file, char *tname);
+bool pkg_exists(str *name);
+str pkg_get_url(str *name);
// install
void install_dependencies(lua_State *L);
void pkg_install(package_t *pkg);
+// remove
+bool repo_uninstall(package_t *pkg);
+bool bldit_uninstall(package_t *pkg);
+bool config_uninstall(package_t *pkg);
+void pkg_remove(package_t *pkg);
+
#endif