aboutsummaryrefslogtreecommitdiff
path: root/spm.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-10 09:49:00 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-10 09:49:00 -0500
commite9e16cc286ae1bd89af50d0c29e00866e1826b6f (patch)
treea0d8509615645d19b26b1214fd1fb5e0114ee058 /spm.h
parent27a91e38de51c40662eb91b8b992b0c052d417f6 (diff)
downloadspmc-e9e16cc286ae1bd89af50d0c29e00866e1826b6f.tar.gz
clean up a bit
Diffstat (limited to 'spm.h')
-rw-r--r--spm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/spm.h b/spm.h
index 47a0e61..24d2835 100644
--- a/spm.h
+++ b/spm.h
@@ -36,6 +36,14 @@
#define SHELL_BENCHMARK 1 << 2
typedef struct {
+ char *platform;
+ char *arch;
+ char *package_dir;
+ char *user_config_basedir;
+ char *user_config_file;
+} spm_vars;
+
+typedef struct {
int count;
char **paths;
} Dirwalk;
@@ -49,6 +57,7 @@ typedef struct {
void shell(Process **proc_info, u_int64_t option, const char *fmt, ...);
void shell_free(Process *proc_info);
+int tar_extract_archive(const char *_archive, const char *_destination);
int tar_extract_file(const char *archive, const char* filename, const char *destination);
int errglob(const char *epath, int eerrno);