diff options
author | Xavier Chantry <chantry.xavier@gmail.com> | 2010-10-17 00:57:37 +0200 |
---|---|---|
committer | Xavier Chantry <chantry.xavier@gmail.com> | 2011-01-29 19:33:15 +0100 |
commit | fb7e1b4b9bf7d2dbcd89a4832067d89a03d71056 (patch) | |
tree | b8ba767e44dc57b5b7e025697fd9a560e5c6a526 /lib/libalpm/alpm.h | |
parent | b8590ed634babc060b35e2ad7a035347234d836a (diff) | |
download | pacman-fb7e1b4b9bf7d2dbcd89a4832067d89a03d71056.tar.xz |
alpm: new alpm_add_pkg interface
This new function is meant to deprecate all existing
sync/add target functions :
int alpm_sync_target(char *target);
int alpm_sync_dbtarget(char *db, char *target);
int alpm_add_target(char *target);
Rather than dropping these 3 interfaces, it might be better to rewrite
them using alpm_add_pkg for now.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index e33aab24..2f52f075 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -423,6 +423,8 @@ int alpm_sync_dbtarget(const char *db, const char *target); int alpm_add_target(const char *target); int alpm_remove_target(const char *target); +int alpm_add_pkg(pmpkg_t *pkg); + /* * Dependencies and conflicts */ |