diff options
| author | 0x221E <0x221E@0xinfinity.dev> | 2026-05-13 16:50:15 +0200 |
|---|---|---|
| committer | 0x221E <0x221E@0xinfinity.dev> | 2026-05-13 16:52:52 +0200 |
| commit | a532b3eb7e8610fb51cc703c9634532704e9b381 (patch) | |
| tree | 7ad12176952943f39dfb3e2d38a6243e2f3ea807 /include/pkgman.h | |
| parent | 922d616c65573bdbbb52f1e2fa663d283d0fbd35 (diff) | |
| download | pkgman-dev.tar.gz | |
Added option to change mirror, tmp, staging directoryfrom the user
interface of the pkgman library. Added TRY and TRY_IFNOT macros for
better code readability.
Diffstat (limited to 'include/pkgman.h')
| -rw-r--r-- | include/pkgman.h | 15 |
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 |
