From fb7e1b4b9bf7d2dbcd89a4832067d89a03d71056 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 17 Oct 2010 00:57:37 +0200 Subject: 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 --- lib/libalpm/alpm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/alpm.h') 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 */ -- cgit v1.2.3-24-g4f1b