Add accessor for handle->disable_sandbox
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
7ccf316ceb
commit
e6b3eb2570
2 changed files with 12 additions and 0 deletions
|
@ -2299,6 +2299,12 @@ int alpm_option_set_parallel_downloads(alpm_handle_t *handle, unsigned int num_s
|
|||
* @{
|
||||
*/
|
||||
|
||||
/** Get the sandbox state
|
||||
* @param handle the context handle
|
||||
* @return 0 for enabled, 1 for disabled
|
||||
*/
|
||||
int alpm_option_get_disable_sandbox(alpm_handle_t *handle);
|
||||
|
||||
/** Enables/disables the sandbox.
|
||||
* @param handle the context handle
|
||||
* @param disable_sandbox 0 for enabled, 1 for disabled
|
||||
|
|
|
@ -952,6 +952,12 @@ int SYMEXPORT alpm_option_set_parallel_downloads(alpm_handle_t *handle,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int SYMEXPORT alpm_option_get_disable_sandbox(alpm_handle_t *handle)
|
||||
{
|
||||
CHECK_HANDLE(handle, return -1);
|
||||
return handle->disable_sandbox;
|
||||
}
|
||||
|
||||
int SYMEXPORT alpm_option_set_disable_sandbox(alpm_handle_t *handle,
|
||||
unsigned short disable_sandbox)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue