X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm.h;h=ea9cd6c96ec406073662475e9086a5648b0b72de;hb=d697639ca6483bdee0ab043f85a2266fe7c62956;hp=106314e958356e40de4fbcea04f67bb42a35571b;hpb=c02e8d831122a804f675a2f106b2e23af235be58;p=zpackage diff --git a/zpm.h b/zpm.h index 106314e..ea9cd6c 100644 --- a/zpm.h +++ b/zpm.h @@ -9,6 +9,7 @@ #include #include +#include #define ZPM_HASH_STRLEN 64 @@ -53,7 +54,7 @@ struct zpm_tag { struct zpm_package { struct zpm *zpm; - struct jsw_hash *ht; + struct jsw_hash_t *ht; /* char pointers are just pointers into the hash table */ /* integers/times and such are passed through atoi */ @@ -77,6 +78,9 @@ struct zpm_package { int zpm_parse_package(char *pstr, char *name, char *ver, int *rel); char *zpm_findpkg(struct zpm *zpm, char *pkgstr, char *where); +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_quote(char *value, char *dest, size_t n); struct zpm_file { @@ -197,7 +201,7 @@ struct zpm *zpm_clearmem(struct zpm *zpm); struct zpm_note { int64_t id; - time_t ts; /* or timespec */ + char *ts; /* applications can parse it if they need to */ char *note; char *pkgid; char *path;