aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-18 15:28:54 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-19 00:32:26 -0400
commit8cdddbb0f1a8c6eb023cbe732e5701240a54ff3c (patch)
tree12cc1ea0186b242a82d87bc2f62142e5decefedb /include
parentf70b803e39484a2eba362414545ba8afd027c9da (diff)
downloadspmc-8cdddbb0f1a8c6eb023cbe732e5701240a54ff3c.tar.gz
Implement error handling
* Die on bad root directory
Diffstat (limited to 'include')
-rw-r--r--include/conf.h1
-rw-r--r--include/install.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/conf.h b/include/conf.h
index a5a4d36..7952eed 100644
--- a/include/conf.h
+++ b/include/conf.h
@@ -16,6 +16,7 @@ typedef struct {
} ConfigItem;
typedef struct {
+ char *rootrec;
char *rootdir;
char *bindir;
char *includedir;
diff --git a/include/install.h b/include/install.h
index fb08661..bc1fe19 100644
--- a/include/install.h
+++ b/include/install.h
@@ -4,6 +4,8 @@
#ifndef SPM_INSTALL_H
#define SPM_INSTALL_H
+int spm_hierarchy_is_root(SPM_Hierarchy *fs);
+int spm_hierarchy_make_root(SPM_Hierarchy *fs);
void spm_install_show_package(ManifestPackage *package);
int spm_install(SPM_Hierarchy *fs, const char *tmpdir, const char *_package);
int spm_install_package_record(SPM_Hierarchy *fs, char *tmpdir, char *package_name);