int zpm_parse_package(char *pstr, char *name, char *ver, int *rel);
char *zpm_findpkg(struct zpm *zpm, char *pkgstr, char *where);
+char *zpm_findpkg_range(struct zpm *zpm, char *minpkg, char *maxpkg, char *where, int wantleast);
int zpm_findhash(struct zpm *zpm, char *find, char *dest);
char *zpm_findlib(struct zpm *zpm, char *soname, char *where);
int zpm_libraries_needed(struct zpm *zpm, char *pkgid, jsw_atree_t *list);
+int zpm_packages_needed(struct zpm *zpm, char *pkgid, jsw_atree_t *list);
int zpm_quote(char *value, char *dest, size_t n);
struct zpm_file {
int zpm_hash(char *path, char *hash, uint32_t flags);
int zpm_readopts(struct zpm *pkg, int ac, char **av);
+struct zpm_version_info {
+ const char *verstr;
+ const char *name; int namelen;
+ const char *version; int verlen;
+ const char *relstr; int rellen;
+ int release;
+};
+
+int zpm_parse_version(const char *pstr, struct zpm_version_info *info);
int zpm_vercmp(const char *a, const char *b);
/* add vercmp collation to db */