1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 20:05:07 -05:00

Add missing get_usedelta() method

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2009-10-11 14:04:28 -05:00
parent 145103aacc
commit 3bc8c28ce3
2 changed files with 10 additions and 0 deletions

View File

@ -154,6 +154,7 @@ int alpm_option_remove_ignoregrp(const char *grp);
const char *alpm_option_get_arch();
void alpm_option_set_arch(const char *arch);
int alpm_option_get_usedelta();
void alpm_option_set_usedelta(int usedelta);
pmdb_t *alpm_option_get_localdb();

View File

@ -223,6 +223,15 @@ const char SYMEXPORT *alpm_option_get_arch()
return handle->arch;
}
int SYMEXPORT alpm_option_get_usedelta()
{
if (handle == NULL) {
pm_errno = PM_ERR_HANDLE_NULL;
return -1;
}
return handle->usedelta;
}
pmdb_t SYMEXPORT *alpm_option_get_localdb()
{
if (handle == NULL) {