+int zpm_hash(char *path, char *hash, uint32_t flags);
+int zpm_readopts(struct zpm *pkg, int ac, char **av);
+
+int zpm_vercmp(const char *a, const char *b);
+
+/* add vercmp collation to db */
+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);
+
+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);
+
+#endif