X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm.h;h=68a536ffd2a03d323f36fdb20e603d001552e4ac;hb=7cc581729bb4b242c803299f72eed987b9fee216;hp=7ed6cfefdcb900784abda2a794f9b6ae937b5a2f;hpb=df8771ff12a79e070f78895fa0ff3f8c2cc1a224;p=zpackage diff --git a/zpm.h b/zpm.h index 7ed6cfe..68a536f 100644 --- a/zpm.h +++ b/zpm.h @@ -98,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