X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm.h;h=68a536ffd2a03d323f36fdb20e603d001552e4ac;hb=7cc581729bb4b242c803299f72eed987b9fee216;hp=756d7dbf4b7723f4d83bce826e7dfe0740f23fdc;hpb=ec091c5913b219120f2abb0a0f72387fde94e0b0;p=zpackage diff --git a/zpm.h b/zpm.h index 756d7db..68a536f 100644 --- a/zpm.h +++ b/zpm.h @@ -11,6 +11,7 @@ struct zpm { char *version; int release; char *pkgname; + int error; /* internal error number */ time_t installed; /* install time, 0 for not installed */ }; @@ -97,4 +98,12 @@ void *compresslzma(void *buf, size_t bufsize, size_t *len); int zpm_hash(char *path, char *hash, uint32_t flags); int zpm_readopts(struct zpm *pkg, int ac, char **av); +int zpm_vercmp(const char *a, const char *b); + +/* add vercmp collation to db */ +int zpm_addvercmp(struct zpm *pkg); + +int zpm_exec(struct zpm *z, const char *sql, int(*callback)(void *, int, char **, char**), void *arg, char **errmsg); + + #endif