diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-26 16:09:32 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-26 16:09:32 -0500 |
commit | d3580f8c0b5c17150382c4b4456e0b1bfa81a50f (patch) | |
tree | 5d0fa6911974b2a0541738a7cffc408b09918b8b /include/conf.h | |
parent | 639aa9dbf60050bf1bbaeea67df13729239c3a31 (diff) | |
download | spmc-d3580f8c0b5c17150382c4b4456e0b1bfa81a50f.tar.gz |
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
Diffstat (limited to 'include/conf.h')
-rw-r--r-- | include/conf.h | 16 |
1 files changed, 11 insertions, 5 deletions
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 |