[pacman-dev] [PATCH 2/3] libalpm/deps.c : export _alpm_checkdeps (-> alpm_checkdeps).
Signed-off-by: Chantry Xavier <shiningxc@gmail.com> --- lib/libalpm/add.c | 2 +- lib/libalpm/alpm.h | 3 +++ lib/libalpm/deps.c | 6 +++--- lib/libalpm/deps.h | 2 -- lib/libalpm/remove.c | 4 ++-- lib/libalpm/sync.c | 4 ++-- 6 files changed, 11 insertions(+), 10 deletions(-)
Hm, instead of renaming _alpm_checkdeps to alpm_checkdeps, I wonder if it wouldn't better to just add a wrapper instead, something like : alpm_list_t SYMEXPORT *alpm_checkdeps(...) { return(_alpm_checkdeps(...); } or a more specific function for computing the missing dependencies for a given database : alpm_list_t SYMEXPORT *alpm_dep_missing(pmdb_t *db) { return(_alpm_checkdeps(db, PM_TRANS_TYPE_ADD, alpm_db_getpkgcache(db))) } Any thoughts?
participants (2)
-
Chantry Xavier
-
Xavier