From d3580f8c0b5c17150382c4b4456e0b1bfa81a50f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 26 Feb 2020 16:09:32 -0500 Subject: Multiple things: * Add strdup_array() * Begin consolidating spm root information into SPM_Hierarchy * Begin consolidating metadata * Begin trimming repeated code (mostly file reading) * Store information about installed packages under [root]/var/db/records --- include/conf.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'include/conf.h') diff --git a/include/conf.h b/include/conf.h index 80ba457..99d550d 100644 --- a/include/conf.h +++ b/include/conf.h @@ -13,11 +13,14 @@ typedef struct { } ConfigItem; typedef struct { - char *binpath; - char *includepath; - char *libpath; - char *datapath; - char *manpath; + char *rootdir; + char *bindir; + char *includedir; + char *libdir; + char *datadir; + char *mandir; + char *sysconfdir; + char *localstatedir; } SPM_Hierarchy; typedef struct { @@ -52,4 +55,7 @@ void free_global_config(void); void show_global_config(void); void check_runtime_environment(void); +SPM_Hierarchy *spm_hierarchy_init(char *basepath); +void spm_hierarchy_free(SPM_Hierarchy *fs); + #endif //SPM_CONF_H -- cgit