Add accessor for handle->disable_dl_timeout
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
e6b3eb2570
commit
e65b7d421c
2 changed files with 12 additions and 0 deletions
|
@ -2257,6 +2257,12 @@ int alpm_option_set_remote_file_siglevel(alpm_handle_t *handle, int level);
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Get the download timeout state
|
||||||
|
* @param handle the context handle
|
||||||
|
* @return 0 for enabled, 1 for disabled
|
||||||
|
*/
|
||||||
|
int alpm_option_get_disable_dl_timeout(alpm_handle_t *handle);
|
||||||
|
|
||||||
/** Enables/disables the download timeout.
|
/** Enables/disables the download timeout.
|
||||||
* @param handle the context handle
|
* @param handle the context handle
|
||||||
* @param disable_dl_timeout 0 for enabled, 1 for disabled
|
* @param disable_dl_timeout 0 for enabled, 1 for disabled
|
||||||
|
|
|
@ -935,6 +935,12 @@ int SYMEXPORT alpm_option_get_remote_file_siglevel(alpm_handle_t *handle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SYMEXPORT alpm_option_get_disable_dl_timeout(alpm_handle_t *handle)
|
||||||
|
{
|
||||||
|
CHECK_HANDLE(handle, return -1);
|
||||||
|
return handle->disable_dl_timeout;
|
||||||
|
}
|
||||||
|
|
||||||
int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle,
|
int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle,
|
||||||
unsigned short disable_dl_timeout)
|
unsigned short disable_dl_timeout)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue