aboutsummaryrefslogtreecommitdiff
path: root/include/spm.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-01-24 09:40:28 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-01-24 09:40:28 -0500
commitea01a40084b4e09c8407886a5070a77aeba56d63 (patch)
tree04321c52b97ad66179d523f5de01f2d9bbb46b83 /include/spm.h
parentbb13dd28686146c07ca9054a95ae19d09b320c8d (diff)
downloadspmc-ea01a40084b4e09c8407886a5070a77aeba56d63.tar.gz
Begin hooking up version spec function(s) to installation
Diffstat (limited to 'include/spm.h')
-rw-r--r--include/spm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/spm.h b/include/spm.h
index f40ea10..925de60 100644
--- a/include/spm.h
+++ b/include/spm.h
@@ -90,7 +90,10 @@
#define PACKAGE_MEMBER_SIZE 0xff
#define PACKAGE_MEMBER_ORIGIN_SIZE PATH_MAX
+#define PACKAGE_MEMBER_SEPARATOR '-'
+#define PACKAGE_MEMBER_SEPARATOR_PLACEHOLD '*'
+#define VERSION_OPERATORS " ~!=<>"
#define VERSION_NOOP 1 << 0
#define VERSION_EQ 1 << 1
#define VERSION_NE 1 << 2
@@ -287,6 +290,8 @@ int dep_all(Dependencies **deps, const char *_package);
void dep_show(Dependencies **deps);
// manifest.c
+void manifest_package_separator_swap(char **name);
+void manifest_package_separator_restore(char **name);
Manifest *manifest_from(const char *package_dir);
Manifest *manifest_read(char *file_or_url);
int manifest_write(Manifest *info, const char *dest);