From 2a90dbe3a8f58c2fc50d8bcd8136fbced659b734 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 17 Oct 2010 11:18:53 +0200 Subject: alpm: deprecate old interface Old interface is marked as deprecated: int alpm_sync_target(char *target); int alpm_sync_dbtarget(char *db, char *target); int alpm_add_target(char *target); int alpm_remove_target(char *target); New recommended interface: int alpm_add_pkg(pmpkg_t *pkg); int alpm_remove_pkg(pmpkg_t *pkg); Signed-off-by: Xavier Chantry --- lib/libalpm/alpm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index c76cd0f8..169882c4 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -419,14 +419,14 @@ int alpm_trans_interrupt(void); int alpm_trans_release(void); int alpm_sync_sysupgrade(int enable_downgrade); -int alpm_sync_target(const char *target); -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); int alpm_remove_pkg(pmpkg_t *pkg); +DEPRECATED int alpm_sync_target(const char *target); +DEPRECATED int alpm_sync_dbtarget(const char *db, const char *target); +DEPRECATED int alpm_add_target(const char *target); +DEPRECATED int alpm_remove_target(const char *target); + /* * Dependencies and conflicts */ -- cgit v1.2.3-24-g4f1b