+int zpm_foreach_path(struct zpm *zpm, char *pkgid,
+int (*callback)(void *f, int ncols, char **vals, char **cols),
+void *data, char **errmsg);
+
+int zpm_script_hash(struct zpm *zpm, char *pkgstr, char *phase, char *hash);
+
+sqlite3_stmt *zpm_dbquery(struct zpm *zpm, char *query, ...);
+struct zpm *zpm_clearmem(struct zpm *zpm);