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>
This commit is contained in:
Xavier Chantry 2010-10-17 11:18:53 +02:00
parent eed7ba92e8
commit 2a90dbe3a8
1 changed files with 5 additions and 5 deletions

View File

@ -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
*/