X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm.h;h=4a213c853e5171d8f3efd915ecd43b93b27b8283;hb=7513a528f61259a92473284fd96313adb7a41f49;hp=68a536ffd2a03d323f36fdb20e603d001552e4ac;hpb=a949e03f1030e8bacbd4aa6ca7143439c1c1d33b;p=zpackage diff --git a/zpm.h b/zpm.h index 68a536f..4a213c8 100644 --- a/zpm.h +++ b/zpm.h @@ -92,8 +92,11 @@ int zpm_checkinstall(struct zpm *local); int zpm_merge(struct zpm *z, struct zpm *src, uint32_t flags); +#if 0 void uncompresslzma(void *buf, size_t bufsize, FILE *out); void *compresslzma(void *buf, size_t bufsize, size_t *len); +#endif + #define SQLERROR(x) fprintf(stderr, "%s %d: %s\n", __func__, __LINE__, (x)) int zpm_hash(char *path, char *hash, uint32_t flags); int zpm_readopts(struct zpm *pkg, int ac, char **av); @@ -105,5 +108,9 @@ 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); +int zpm_foreach_path(struct zpm *zpm, char *pkgid, +int (*callback)(void *f, int ncols, char **vals, char **cols), +void *data, char **errmsg); + #endif