]> pd.if.org Git - zpackage/blobdiff - zpm.h
add prototype for zpm_readopts()
[zpackage] / zpm.h
diff --git a/zpm.h b/zpm.h
index a45938bbc46fd262a69cddf56037919f406d963a..756d7dbf4b7723f4d83bce826e7dfe0740f23fdc 100644 (file)
--- a/zpm.h
+++ b/zpm.h
@@ -1,3 +1,6 @@
+#ifndef ZPM_H_
+#define ZPM_H_ 1
+
 #include <stdint.h>
 #include <time.h>
 #include <sqlite3.h>
@@ -92,3 +95,6 @@ void uncompresslzma(void *buf, size_t bufsize, FILE *out);
 void *compresslzma(void *buf, size_t bufsize, size_t *len);
 #define SQLERROR(x) fprintf(stderr, "%s %d: %s\n", __func__, __LINE__, (x))
 int zpm_hash(char *path, char *hash, uint32_t flags);
+int zpm_readopts(struct zpm *pkg, int ac, char **av);
+
+#endif