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:
parent
145103aacc
commit
3bc8c28ce3
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user