]> pd.if.org Git - zpackage/blobdiff - zpm.h
add foreach_path to zpm library
[zpackage] / zpm.h
diff --git a/zpm.h b/zpm.h
index 68a536ffd2a03d323f36fdb20e603d001552e4ac..4a213c853e5171d8f3efd915ecd43b93b27b8283 100644 (file)
--- 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