X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm.h;h=106314e958356e40de4fbcea04f67bb42a35571b;hb=c02e8d831122a804f675a2f106b2e23af235be58;hp=adc69bba4376d03459d656ac70bf5a05d20e1c7e;hpb=636836fc0d1e5126ad94a73be80a7eea7d984d09;p=zpackage diff --git a/zpm.h b/zpm.h index adc69bb..106314e 100644 --- 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);