]> pd.if.org Git - zpackage/blobdiff - zpm.h
add vercmp functions to libzpm
[zpackage] / zpm.h
diff --git a/zpm.h b/zpm.h
index ee807228048b5588dec76941bddeb37c690195ec..68a536ffd2a03d323f36fdb20e603d001552e4ac 100644 (file)
--- a/zpm.h
+++ b/zpm.h
@@ -98,5 +98,12 @@ void *compresslzma(void *buf, size_t bufsize, size_t *len);
 int zpm_hash(char *path, char *hash, uint32_t flags);
 int zpm_readopts(struct zpm *pkg, int ac, char **av);
 
-int zpm_vercmp(char *a, char *b);
+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);
+
+
 #endif