summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-17 11:18:53 +0200
committerXavier Chantry <chantry.xavier@gmail.com>2011-01-29 19:39:06 +0100
commit2a90dbe3a8f58c2fc50d8bcd8136fbced659b734 (patch)
tree6ade0734e487af73ce9536914fa6619a5a29d189 /lib/libalpm
parenteed7ba92e849edbd5505baa2c1d4864d0490fa80 (diff)
downloadpacman-2a90dbe3a8f58c2fc50d8bcd8136fbced659b734.tar.gz
pacman-2a90dbe3a8f58c2fc50d8bcd8136fbced659b734.tar.xz
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 <chantry.xavier@gmail.com>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/alpm.h10
1 files changed, 5 insertions, 5 deletions
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
*/