summaryrefslogtreecommitdiff
path: root/include/pkgman.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pkgman.h')
-rw-r--r--include/pkgman.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/pkgman.h b/include/pkgman.h
index 0d17622..ad95528 100644
--- a/include/pkgman.h
+++ b/include/pkgman.h
@@ -1,8 +1,17 @@
#ifndef PKGMAN_H
#define PKGMAN_H
-int pkgman_upstream_check(const char *pkg);
-int pkgman_install_pkg(const char *pkg);
-int pkgman_upstream_integrity_download(const char *pkg);
+typedef struct url url;
+
+struct pkgman_config {
+ char *dir_tmp;
+ char *dir_staging;
+ char *upstream;
+};
+
+int pkgman_upstream_check(struct pkgman_config *pc, const char *pkg);
+int pkgman_install_pkg(struct pkgman_config *pc, const char *pkg);
+int pkgman_upstream_integrity_download(struct pkgman_config *pc,
+ const char *pkg);
#endif