Improve libpkg interface for plugins use.
modified libpkg/libpkg.ver
@@ -222,6 +222,11 @@ global:
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/lua.c
@@ -1,7 +1,9 @@
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -11,7 +13,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -219,7 +221,7 @@ lua_pkg_copy(lua_State *L)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -435,6 +435,7 @@ typedef enum _pkg_plugin_hook_t {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1507,6 +1508,9 @@ mirror_t pkg_repo_mirror_type(struct pkg_repo *r);
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1637,6 +1641,8 @@ bool pkg_is_locked(const struct pkg * restrict p);
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1649,6 +1655,16 @@ int pkg_get_dbdirfd(void);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_create.c
@@ -3,6 +3,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -190,7 +192,7 @@ pkg_create_archive(struct pkg *pkg, struct pkg_create *pc, unsigned required_fla
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_jobs.c
@@ -2338,7 +2338,7 @@ pkg_jobs_fetch(struct pkg_jobs *j)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo.c
@@ -4,6 +4,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -64,7 +66,7 @@ struct sig_cert {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -90,7 +92,7 @@ pkg_repo_fetch_remote_tmp(struct pkg_repo *repo,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_create.c
@@ -4,6 +4,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -137,7 +139,7 @@ hash_file(struct pkg_repo_meta *meta, struct pkg *pkg, char *path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_update.c
@@ -2,6 +2,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -49,5 +51,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified libpkg/pkgdb.c
@@ -697,7 +697,7 @@ pkgdb_check_access(unsigned mode, const char *dbname)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -706,7 +706,7 @@ pkgdb_check_access(unsigned mode, const char *dbname)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -983,7 +983,7 @@ retry:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/event.h
@@ -3,6 +3,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -30,13 +32,13 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/utils.h
@@ -1,8 +1,10 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -12,7 +14,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -80,7 +82,6 @@ struct pkg_key;
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -122,7 +123,6 @@ int checkflags(const char *mode, int *optr);
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified libpkg/repo/binary/fetch.c
@@ -4,6 +4,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -166,7 +168,7 @@ pkg_repo_binary_try_fetch(struct pkg_repo *repo, struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/utils.c
@@ -2,8 +2,10 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -13,7 +15,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -93,7 +95,7 @@ match_ucl_lists(const char *buf, const ucl_object_t *globs, const ucl_object_t *
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -673,7 +675,7 @@ pkg_utils_tokenize(char **args)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -890,7 +892,7 @@ _copy_file(int from, int to)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -962,7 +964,7 @@ hidden_tempfile(char *buf, int buflen, const char *path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1009,7 +1011,7 @@ open_tempdir(int rootfd, const char *path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1019,7 +1021,7 @@ open_tempdir(int rootfd, const char *path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|