]> pd.if.org Git - zpackage/blobdiff - zpm.h
add foreach_script function
[zpackage] / zpm.h
diff --git a/zpm.h b/zpm.h
index adc69bba4376d03459d656ac70bf5a05d20e1c7e..106314e958356e40de4fbcea04f67bb42a35571b 100644 (file)
--- a/zpm.h
+++ b/zpm.h
@@ -180,6 +180,8 @@ void *data, char **errmsg);
 
 int zpm_script_hash(struct zpm *zpm, char *pkgstr, char *phase, char *hash);
 int zpm_script_set(struct zpm *zpm, char *pkgstr, char *phase, char *hash);
+int zpm_foreach_script(struct zpm *zpm, char *pkgstr, char *stage, void *cbd,
+               int (*cb)(void *ud, const char *pkg, const char *stage, const char *hash));
 
 int zpm_package_hash(struct zpm *zpm, char *pkgid, char *hash);
 int zpm_package_sethash(struct zpm *zpm, char *pkgid, char *hash);