libalpm
Arch Linux Package Manager Library
|
Libalpm option getters and setters More...
Accessors for callbacks | |
alpm_cb_log | alpm_option_get_logcb (alpm_handle_t *handle) |
Returns the callback used for logging. | |
void * | alpm_option_get_logcb_ctx (alpm_handle_t *handle) |
Returns the callback used for logging. | |
int | alpm_option_set_logcb (alpm_handle_t *handle, alpm_cb_log cb, void *ctx) |
Sets the callback used for logging. | |
alpm_cb_download | alpm_option_get_dlcb (alpm_handle_t *handle) |
Returns the callback used to report download progress. | |
void * | alpm_option_get_dlcb_ctx (alpm_handle_t *handle) |
Returns the callback used to report download progress. | |
int | alpm_option_set_dlcb (alpm_handle_t *handle, alpm_cb_download cb, void *ctx) |
Sets the callback used to report download progress. | |
alpm_cb_fetch | alpm_option_get_fetchcb (alpm_handle_t *handle) |
Returns the downloading callback. | |
void * | alpm_option_get_fetchcb_ctx (alpm_handle_t *handle) |
Returns the downloading callback. | |
int | alpm_option_set_fetchcb (alpm_handle_t *handle, alpm_cb_fetch cb, void *ctx) |
Sets the downloading callback. | |
alpm_cb_event | alpm_option_get_eventcb (alpm_handle_t *handle) |
Returns the callback used for events. | |
void * | alpm_option_get_eventcb_ctx (alpm_handle_t *handle) |
Returns the callback used for events. | |
int | alpm_option_set_eventcb (alpm_handle_t *handle, alpm_cb_event cb, void *ctx) |
Sets the callback used for events. | |
alpm_cb_question | alpm_option_get_questioncb (alpm_handle_t *handle) |
Returns the callback used for questions. | |
void * | alpm_option_get_questioncb_ctx (alpm_handle_t *handle) |
Returns the callback used for questions. | |
int | alpm_option_set_questioncb (alpm_handle_t *handle, alpm_cb_question cb, void *ctx) |
Sets the callback used for questions. | |
alpm_cb_progress | alpm_option_get_progresscb (alpm_handle_t *handle) |
Returns the callback used for operation progress. | |
void * | alpm_option_get_progresscb_ctx (alpm_handle_t *handle) |
Returns the callback used for operation progress. | |
int | alpm_option_set_progresscb (alpm_handle_t *handle, alpm_cb_progress cb, void *ctx) |
Sets the callback used for operation progress. | |
Accessors to the root directory | |
The root directory is the prefix to which libalpm installs packages to. Hooks and scriptlets will also be run in a chroot to ensure they behave correctly in alternative roots. | |
const char * | alpm_option_get_root (alpm_handle_t *handle) |
Returns the root path. | |
Accessors to the database path | |
The dbpath is where libalpm stores the local db and downloads sync databases. | |
const char * | alpm_option_get_dbpath (alpm_handle_t *handle) |
Returns the path to the database directory. | |
Accessors to the lockfile | |
The lockfile is used to ensure two instances of libalpm can not write to the database at the same time. The lock file is created when committing a transaction and released when the transaction completes. Or when calling alpm_unlock. | |
const char * | alpm_option_get_lockfile (alpm_handle_t *handle) |
Get the name of the database lock file. | |
Accessors to the list of package cache directories. | |
This is where libalpm will store downloaded packages. | |
alpm_list_t * | alpm_option_get_cachedirs (alpm_handle_t *handle) |
Gets the currently configured cachedirs,. | |
int | alpm_option_set_cachedirs (alpm_handle_t *handle, alpm_list_t *cachedirs) |
Sets the cachedirs. | |
int | alpm_option_add_cachedir (alpm_handle_t *handle, const char *cachedir) |
Append a cachedir to the configured cachedirs. | |
int | alpm_option_remove_cachedir (alpm_handle_t *handle, const char *cachedir) |
Remove a cachedir from the configured cachedirs. | |
Accessors to the list of package hook directories. | |
libalpm will search these directories for hooks to run. A hook in a later directory will override previous hooks if they have the same name. | |
alpm_list_t * | alpm_option_get_hookdirs (alpm_handle_t *handle) |
Gets the currently configured hookdirs,. | |
int | alpm_option_set_hookdirs (alpm_handle_t *handle, alpm_list_t *hookdirs) |
Sets the hookdirs. | |
int | alpm_option_add_hookdir (alpm_handle_t *handle, const char *hookdir) |
Append a hookdir to the configured hookdirs. | |
int | alpm_option_remove_hookdir (alpm_handle_t *handle, const char *hookdir) |
Remove a hookdir from the configured hookdirs. | |
Accessors to the list of overwritable files. | |
Normally libalpm will refuse to install a package that owns files that are already on disk and not owned by that package. If a conflicting file matches a glob in the overwrite_files list, then no conflict will be raised and libalpm will simply overwrite the file. | |
alpm_list_t * | alpm_option_get_overwrite_files (alpm_handle_t *handle) |
Gets the currently configured overwritable files,. | |
int | alpm_option_set_overwrite_files (alpm_handle_t *handle, alpm_list_t *globs) |
Sets the overwritable files. | |
int | alpm_option_add_overwrite_file (alpm_handle_t *handle, const char *glob) |
Append an overwritable file to the configured overwritable files. | |
int | alpm_option_remove_overwrite_file (alpm_handle_t *handle, const char *glob) |
Remove a file glob from the configured overwritable files globs. | |
Accessors to the log file | |
This controls where libalpm will save log output to. | |
const char * | alpm_option_get_logfile (alpm_handle_t *handle) |
Gets the filepath to the currently set logfile. | |
int | alpm_option_set_logfile (alpm_handle_t *handle, const char *logfile) |
Sets the logfile path. | |
Accessors to the GPG directory | |
This controls where libalpm will store GnuPG's files. | |
const char * | alpm_option_get_gpgdir (alpm_handle_t *handle) |
Returns the path to libalpm's GnuPG home directory. | |
int | alpm_option_set_gpgdir (alpm_handle_t *handle, const char *gpgdir) |
Sets the path to libalpm's GnuPG home directory. | |
Accessors for use sandboxuser | |
This controls the user that libalpm will use for sensitive operations like downloading files. | |
const char * | alpm_option_get_sandboxuser (alpm_handle_t *handle) |
Returns the user to switch to for sensitive operations. | |
int | alpm_option_set_sandboxuser (alpm_handle_t *handle, const char *sandboxuser) |
Sets the user to switch to for sensitive operations. | |
Accessors for use syslog | |
This controls whether libalpm will also use the syslog. Even if this option is enabled, libalpm will still try to log to its log file. | |
int | alpm_option_get_usesyslog (alpm_handle_t *handle) |
Returns whether to use syslog (0 is FALSE, TRUE otherwise). | |
int | alpm_option_set_usesyslog (alpm_handle_t *handle, int usesyslog) |
Sets whether to use syslog (0 is FALSE, TRUE otherwise). | |
Accessors to the list of no-upgrade files. | |
These functions modify the list of files which should not be updated by package installation. | |
alpm_list_t * | alpm_option_get_noupgrades (alpm_handle_t *handle) |
Get the list of no-upgrade files. | |
int | alpm_option_add_noupgrade (alpm_handle_t *handle, const char *path) |
Add a file to the no-upgrade list. | |
int | alpm_option_set_noupgrades (alpm_handle_t *handle, alpm_list_t *noupgrade) |
Sets the list of no-upgrade files. | |
int | alpm_option_remove_noupgrade (alpm_handle_t *handle, const char *path) |
Remove an entry from the no-upgrade list. | |
int | alpm_option_match_noupgrade (alpm_handle_t *handle, const char *path) |
Test if a path matches any of the globs in the no-upgrade list. | |
Accessors to the list of no-extract files. | |
These functions modify the list of filenames which should be skipped packages which should not be upgraded by a sysupgrade operation. | |
alpm_list_t * | alpm_option_get_noextracts (alpm_handle_t *handle) |
Get the list of no-extract files. | |
int | alpm_option_add_noextract (alpm_handle_t *handle, const char *path) |
Add a file to the no-extract list. | |
int | alpm_option_set_noextracts (alpm_handle_t *handle, alpm_list_t *noextract) |
Sets the list of no-extract files. | |
int | alpm_option_remove_noextract (alpm_handle_t *handle, const char *path) |
Remove an entry from the no-extract list. | |
int | alpm_option_match_noextract (alpm_handle_t *handle, const char *path) |
Test if a path matches any of the globs in the no-extract list. | |
Accessors to the list of ignored packages. | |
These functions modify the list of packages that should be ignored by a sysupgrade. Entries in this list may be globs and only match the package's name. Providers are not taken into account. | |
alpm_list_t * | alpm_option_get_ignorepkgs (alpm_handle_t *handle) |
Get the list of ignored packages. | |
int | alpm_option_add_ignorepkg (alpm_handle_t *handle, const char *pkg) |
Add a file to the ignored package list. | |
int | alpm_option_set_ignorepkgs (alpm_handle_t *handle, alpm_list_t *ignorepkgs) |
Sets the list of packages to ignore. | |
int | alpm_option_remove_ignorepkg (alpm_handle_t *handle, const char *pkg) |
Remove an entry from the ignorepkg list. | |
Accessors to the list of ignored groups. | |
These functions modify the list of groups whose packages should be ignored by a sysupgrade. Entries in this list may be globs. | |
alpm_list_t * | alpm_option_get_ignoregroups (alpm_handle_t *handle) |
Get the list of ignored groups. | |
int | alpm_option_add_ignoregroup (alpm_handle_t *handle, const char *grp) |
Add a file to the ignored group list. | |
int | alpm_option_set_ignoregroups (alpm_handle_t *handle, alpm_list_t *ignoregrps) |
Sets the list of groups to ignore. | |
int | alpm_option_remove_ignoregroup (alpm_handle_t *handle, const char *grp) |
Remove an entry from the ignoregroup list. | |
Accessors to the list of ignored dependencies. | |
These functions modify the list of dependencies that should be ignored by a sysupgrade. This is effectively a list of virtual providers that packages can use to satisfy their dependencies. | |
alpm_list_t * | alpm_option_get_assumeinstalled (alpm_handle_t *handle) |
Gets the list of dependencies that are assumed to be met. | |
int | alpm_option_add_assumeinstalled (alpm_handle_t *handle, const alpm_depend_t *dep) |
Add a depend to the assumed installed list. | |
int | alpm_option_set_assumeinstalled (alpm_handle_t *handle, alpm_list_t *deps) |
Sets the list of dependencies that are assumed to be met. | |
int | alpm_option_remove_assumeinstalled (alpm_handle_t *handle, const alpm_depend_t *dep) |
Remove an entry from the assume installed list. | |
Accessors to the list of allowed architectures. | |
libalpm will only install packages that match one of the configured architectures. The architectures do not need to match the physical architecture. They can just be treated as a label. | |
alpm_list_t * | alpm_option_get_architectures (alpm_handle_t *handle) |
Returns the allowed package architecture. | |
int | alpm_option_add_architecture (alpm_handle_t *handle, const char *arch) |
Adds an allowed package architecture. | |
int | alpm_option_set_architectures (alpm_handle_t *handle, alpm_list_t *arches) |
Sets the allowed package architecture. | |
int | alpm_option_remove_architecture (alpm_handle_t *handle, const char *arch) |
Removes an allowed package architecture. | |
Accessors for check space. | |
This controls whether libalpm will check if there is sufficient before installing packages. | |
int | alpm_option_get_checkspace (alpm_handle_t *handle) |
Get whether or not checking for free space before installing packages is enabled. | |
int | alpm_option_set_checkspace (alpm_handle_t *handle, int checkspace) |
Enable/disable checking free space before installing packages. | |
Accessors for the database extension | |
This controls the extension used for sync databases. libalpm will use this extension to both lookup remote databses and as the name used when opening reading them. This is useful for file databases. Seems as files can increase the size of a database by quite a lot, a server could hold a database without files under one extension, and another with files under another extension. Which one is downloaded and used then depends on this setting. | |
const char * | alpm_option_get_dbext (alpm_handle_t *handle) |
Gets the configured database extension. | |
int | alpm_option_set_dbext (alpm_handle_t *handle, const char *dbext) |
Sets the database extension. | |
Accessors for the signature levels | |
int | alpm_option_get_default_siglevel (alpm_handle_t *handle) |
Get the default siglevel. | |
int | alpm_option_set_default_siglevel (alpm_handle_t *handle, int level) |
Set the default siglevel. | |
int | alpm_option_get_local_file_siglevel (alpm_handle_t *handle) |
Get the configured local file siglevel. | |
int | alpm_option_set_local_file_siglevel (alpm_handle_t *handle, int level) |
Set the local file siglevel. | |
int | alpm_option_get_remote_file_siglevel (alpm_handle_t *handle) |
Get the configured remote file siglevel. | |
int | alpm_option_set_remote_file_siglevel (alpm_handle_t *handle, int level) |
Set the remote file siglevel. | |
Accessors for download timeout | |
By default, libalpm will timeout if a download has been transferring less than 1 byte for 10 seconds. | |
int | alpm_option_set_disable_dl_timeout (alpm_handle_t *handle, unsigned short disable_dl_timeout) |
Enables/disables the download timeout. | |
Accessors for parallel downloads | |
alpm_db_update, alpm_fetch_pkgurl and alpm_trans_commit can all download packages in parallel. This setting configures how many packages can be downloaded in parallel, By default this value is set to 1, meaning packages are downloading sequentially. | |
int | alpm_option_get_parallel_downloads (alpm_handle_t *handle) |
Gets the number of parallel streams to download database and package files. | |
int | alpm_option_set_parallel_downloads (alpm_handle_t *handle, unsigned int num_streams) |
Sets number of parallel streams to download database and package files. | |
Accessors for sandbox | |
By default, libalpm will sandbox the downloader process. | |
int | alpm_option_set_disable_sandbox (alpm_handle_t *handle, unsigned short disable_sandbox) |
Enables/disables the sandbox. | |
Libalpm option getters and setters
int alpm_option_add_architecture | ( | alpm_handle_t * | handle, |
const char * | arch ) |
Adds an allowed package architecture.
handle | the context handle |
arch | the architecture to set |
References alpm_list_add().
int alpm_option_add_assumeinstalled | ( | alpm_handle_t * | handle, |
const alpm_depend_t * | dep ) |
Add a depend to the assumed installed list.
handle | the context handle |
dep | the dependency to add |
References ALPM_DEP_MOD_ANY, ALPM_DEP_MOD_EQ, ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, alpm_list_add(), ASSERT, CHECK_HANDLE, alpm_depend_t::mod, alpm_depend_t::name, alpm_depend_t::name_hash, and RET_ERR.
Referenced by alpm_option_set_assumeinstalled().
int alpm_option_add_cachedir | ( | alpm_handle_t * | handle, |
const char * | cachedir ) |
Append a cachedir to the configured cachedirs.
handle | the context handle |
cachedir | the cachedir to add |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, alpm_list_add(), ALPM_LOG_DEBUG, ASSERT, canonicalize_path(), CHECK_HANDLE, and RET_ERR.
Referenced by alpm_option_set_cachedirs().
int alpm_option_add_hookdir | ( | alpm_handle_t * | handle, |
const char * | hookdir ) |
Append a hookdir to the configured hookdirs.
handle | the context handle |
hookdir | the hookdir to add |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, alpm_list_add(), ALPM_LOG_DEBUG, ASSERT, canonicalize_path(), CHECK_HANDLE, and RET_ERR.
Referenced by alpm_option_set_hookdirs().
int alpm_option_add_ignoregroup | ( | alpm_handle_t * | handle, |
const char * | grp ) |
Add a file to the ignored group list.
handle | the context handle |
grp | the group to add |
int alpm_option_add_ignorepkg | ( | alpm_handle_t * | handle, |
const char * | pkg ) |
Add a file to the ignored package list.
handle | the context handle |
pkg | the package to add |
int alpm_option_add_noextract | ( | alpm_handle_t * | handle, |
const char * | path ) |
Add a file to the no-extract list.
handle | the context handle |
path | the path to add |
int alpm_option_add_noupgrade | ( | alpm_handle_t * | handle, |
const char * | path ) |
Add a file to the no-upgrade list.
handle | the context handle |
path | the path to add |
int alpm_option_add_overwrite_file | ( | alpm_handle_t * | handle, |
const char * | glob ) |
Append an overwritable file to the configured overwritable files.
handle | the context handle |
glob | the file glob to add |
alpm_list_t * alpm_option_get_architectures | ( | alpm_handle_t * | handle | ) |
Returns the allowed package architecture.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_assumeinstalled | ( | alpm_handle_t * | handle | ) |
Gets the list of dependencies that are assumed to be met.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_cachedirs | ( | alpm_handle_t * | handle | ) |
Gets the currently configured cachedirs,.
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_get_checkspace | ( | alpm_handle_t * | handle | ) |
Get whether or not checking for free space before installing packages is enabled.
handle | the context handle |
References CHECK_HANDLE.
const char * alpm_option_get_dbext | ( | alpm_handle_t * | handle | ) |
Gets the configured database extension.
handle | the context handle |
References CHECK_HANDLE.
Referenced by curl_check_finished_download().
const char * alpm_option_get_dbpath | ( | alpm_handle_t * | handle | ) |
Returns the path to the database directory.
Read-only.
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_get_default_siglevel | ( | alpm_handle_t * | handle | ) |
Get the default siglevel.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_download alpm_option_get_dlcb | ( | alpm_handle_t * | handle | ) |
Returns the callback used to report download progress.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_dlcb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the callback used to report download progress.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_event alpm_option_get_eventcb | ( | alpm_handle_t * | handle | ) |
Returns the callback used for events.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_eventcb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the callback used for events.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_fetch alpm_option_get_fetchcb | ( | alpm_handle_t * | handle | ) |
Returns the downloading callback.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_fetchcb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the downloading callback.
handle | the context handle |
References CHECK_HANDLE.
const char * alpm_option_get_gpgdir | ( | alpm_handle_t * | handle | ) |
Returns the path to libalpm's GnuPG home directory.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_hookdirs | ( | alpm_handle_t * | handle | ) |
Gets the currently configured hookdirs,.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_ignoregroups | ( | alpm_handle_t * | handle | ) |
Get the list of ignored groups.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_ignorepkgs | ( | alpm_handle_t * | handle | ) |
Get the list of ignored packages.
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_get_local_file_siglevel | ( | alpm_handle_t * | handle | ) |
Get the configured local file siglevel.
handle | the context handle |
References ALPM_SIG_USE_DEFAULT, and CHECK_HANDLE.
const char * alpm_option_get_lockfile | ( | alpm_handle_t * | handle | ) |
Get the name of the database lock file.
Read-only. This is the name that the lockfile would have. It does not matter if the lockfile actually exists on disk.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_log alpm_option_get_logcb | ( | alpm_handle_t * | handle | ) |
Returns the callback used for logging.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_logcb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the callback used for logging.
handle | the context handle |
References CHECK_HANDLE.
const char * alpm_option_get_logfile | ( | alpm_handle_t * | handle | ) |
Gets the filepath to the currently set logfile.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_noextracts | ( | alpm_handle_t * | handle | ) |
Get the list of no-extract files.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_noupgrades | ( | alpm_handle_t * | handle | ) |
Get the list of no-upgrade files.
handle | the context handle |
References CHECK_HANDLE.
alpm_list_t * alpm_option_get_overwrite_files | ( | alpm_handle_t * | handle | ) |
Gets the currently configured overwritable files,.
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_get_parallel_downloads | ( | alpm_handle_t * | handle | ) |
Gets the number of parallel streams to download database and package files.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_progress alpm_option_get_progresscb | ( | alpm_handle_t * | handle | ) |
Returns the callback used for operation progress.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_progresscb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the callback used for operation progress.
handle | the context handle |
References CHECK_HANDLE.
alpm_cb_question alpm_option_get_questioncb | ( | alpm_handle_t * | handle | ) |
Returns the callback used for questions.
handle | the context handle |
References CHECK_HANDLE.
void * alpm_option_get_questioncb_ctx | ( | alpm_handle_t * | handle | ) |
Returns the callback used for questions.
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_get_remote_file_siglevel | ( | alpm_handle_t * | handle | ) |
Get the configured remote file siglevel.
handle | the context handle |
References ALPM_SIG_USE_DEFAULT, and CHECK_HANDLE.
const char * alpm_option_get_root | ( | alpm_handle_t * | handle | ) |
const char * alpm_option_get_sandboxuser | ( | alpm_handle_t * | handle | ) |
Returns the user to switch to for sensitive operations.
References CHECK_HANDLE.
int alpm_option_get_usesyslog | ( | alpm_handle_t * | handle | ) |
Returns whether to use syslog (0 is FALSE, TRUE otherwise).
handle | the context handle |
References CHECK_HANDLE.
int alpm_option_match_noextract | ( | alpm_handle_t * | handle, |
const char * | path ) |
Test if a path matches any of the globs in the no-extract list.
handle | the context handle |
path | the path to test |
Referenced by calculate_removed_size().
int alpm_option_match_noupgrade | ( | alpm_handle_t * | handle, |
const char * | path ) |
Test if a path matches any of the globs in the no-upgrade list.
handle | the context handle |
path | the path to test |
int alpm_option_remove_architecture | ( | alpm_handle_t * | handle, |
const char * | arch ) |
Removes an allowed package architecture.
handle | the context handle |
arch | the architecture to remove |
References alpm_list_remove_str(), CHECK_HANDLE, and FREE.
int alpm_option_remove_assumeinstalled | ( | alpm_handle_t * | handle, |
const alpm_depend_t * | dep ) |
Remove an entry from the assume installed list.
handle | the context handle |
dep | the dep to remove |
References alpm_dep_free(), alpm_list_remove(), assumeinstalled_cmp(), and CHECK_HANDLE.
int alpm_option_remove_cachedir | ( | alpm_handle_t * | handle, |
const char * | cachedir ) |
Remove a cachedir from the configured cachedirs.
handle | the context handle |
cachedir | the cachedir to remove |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, alpm_list_remove_str(), ASSERT, canonicalize_path(), CHECK_HANDLE, FREE, and RET_ERR.
int alpm_option_remove_hookdir | ( | alpm_handle_t * | handle, |
const char * | hookdir ) |
Remove a hookdir from the configured hookdirs.
handle | the context handle |
hookdir | the hookdir to remove |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, alpm_list_remove_str(), ASSERT, canonicalize_path(), CHECK_HANDLE, FREE, and RET_ERR.
int alpm_option_remove_ignoregroup | ( | alpm_handle_t * | handle, |
const char * | grp ) |
Remove an entry from the ignoregroup list.
handle | the context handle |
grp | the group to remove |
int alpm_option_remove_ignorepkg | ( | alpm_handle_t * | handle, |
const char * | pkg ) |
Remove an entry from the ignorepkg list.
handle | the context handle |
pkg | the package to remove |
int alpm_option_remove_noextract | ( | alpm_handle_t * | handle, |
const char * | path ) |
Remove an entry from the no-extract list.
handle | the context handle |
path | the path to remove |
int alpm_option_remove_noupgrade | ( | alpm_handle_t * | handle, |
const char * | path ) |
Remove an entry from the no-upgrade list.
handle | the context handle |
path | the path to remove |
int alpm_option_remove_overwrite_file | ( | alpm_handle_t * | handle, |
const char * | glob ) |
Remove a file glob from the configured overwritable files globs.
handle | the context handle |
glob | the file glob to remove |
int alpm_option_set_architectures | ( | alpm_handle_t * | handle, |
alpm_list_t * | arches ) |
Sets the allowed package architecture.
handle | the context handle |
arches | the architecture to set |
References alpm_list_strdup(), CHECK_HANDLE, and FREELIST.
int alpm_option_set_assumeinstalled | ( | alpm_handle_t * | handle, |
alpm_list_t * | deps ) |
Sets the list of dependencies that are assumed to be met.
handle | the context handle |
deps | a list of *alpm_depend_t The list will be duped and the original will still need to be freed by the caller. |
References alpm_dep_free(), alpm_list_free(), alpm_list_free_inner(), alpm_option_add_assumeinstalled(), CHECK_HANDLE, alpm_list_t::data, and alpm_list_t::next.
int alpm_option_set_cachedirs | ( | alpm_handle_t * | handle, |
alpm_list_t * | cachedirs ) |
Sets the cachedirs.
handle | the context handle |
cachedirs | a char* list of cachdirs. The list will be duped and the original will still need to be freed by the caller. |
References alpm_option_add_cachedir(), CHECK_HANDLE, alpm_list_t::data, FREELIST, and alpm_list_t::next.
int alpm_option_set_checkspace | ( | alpm_handle_t * | handle, |
int | checkspace ) |
Enable/disable checking free space before installing packages.
handle | the context handle |
checkspace | 0 for disabled, 1 for enabled |
References CHECK_HANDLE.
int alpm_option_set_dbext | ( | alpm_handle_t * | handle, |
const char * | dbext ) |
Sets the database extension.
handle | the context handle |
dbext | the database extension to use |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, ALPM_LOG_DEBUG, ASSERT, CHECK_HANDLE, FREE, RET_ERR, and STRDUP.
int alpm_option_set_default_siglevel | ( | alpm_handle_t * | handle, |
int | level ) |
Set the default siglevel.
handle | the context handle |
level | a alpm_siglevel_t bitfield of the level to set |
References ALPM_ERR_MISSING_CAPABILITY_SIGNATURES, ALPM_ERR_WRONG_ARGS, ALPM_SIG_USE_DEFAULT, CHECK_HANDLE, level, and RET_ERR.
int alpm_option_set_disable_dl_timeout | ( | alpm_handle_t * | handle, |
unsigned short | disable_dl_timeout ) |
Enables/disables the download timeout.
handle | the context handle |
disable_dl_timeout | 0 for enabled, 1 for disabled |
References CHECK_HANDLE.
int alpm_option_set_disable_sandbox | ( | alpm_handle_t * | handle, |
unsigned short | disable_sandbox ) |
Enables/disables the sandbox.
handle | the context handle |
disable_sandbox | 0 for enabled, 1 for disabled |
References CHECK_HANDLE.
int alpm_option_set_dlcb | ( | alpm_handle_t * | handle, |
alpm_cb_download | cb, | ||
void * | ctx ) |
Sets the callback used to report download progress.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_eventcb | ( | alpm_handle_t * | handle, |
alpm_cb_event | cb, | ||
void * | ctx ) |
Sets the callback used for events.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_fetchcb | ( | alpm_handle_t * | handle, |
alpm_cb_fetch | cb, | ||
void * | ctx ) |
Sets the downloading callback.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_gpgdir | ( | alpm_handle_t * | handle, |
const char * | gpgdir ) |
Sets the path to libalpm's GnuPG home directory.
handle | the context handle |
gpgdir | the gpgdir to set |
References ALPM_LOG_DEBUG, CHECK_HANDLE, and RET_ERR.
int alpm_option_set_hookdirs | ( | alpm_handle_t * | handle, |
alpm_list_t * | hookdirs ) |
Sets the hookdirs.
handle | the context handle |
hookdirs | a char* list of hookdirs. The list will be duped and the original will still need to be freed by the caller. |
References alpm_option_add_hookdir(), CHECK_HANDLE, alpm_list_t::data, FREELIST, and alpm_list_t::next.
int alpm_option_set_ignoregroups | ( | alpm_handle_t * | handle, |
alpm_list_t * | ignoregrps ) |
Sets the list of groups to ignore.
handle | the context handle |
ignoregrps | a char* list of groups to ignore The list will be duped and the original will still need to be freed by the caller. |
int alpm_option_set_ignorepkgs | ( | alpm_handle_t * | handle, |
alpm_list_t * | ignorepkgs ) |
Sets the list of packages to ignore.
handle | the context handle |
ignorepkgs | a char* list of packages to ignore The list will be duped and the original will still need to be freed by the caller. |
int alpm_option_set_local_file_siglevel | ( | alpm_handle_t * | handle, |
int | level ) |
Set the local file siglevel.
handle | the context handle |
level | a alpm_siglevel_t bitfield of the level to set |
References ALPM_ERR_MISSING_CAPABILITY_SIGNATURES, ALPM_SIG_USE_DEFAULT, CHECK_HANDLE, level, and RET_ERR.
int alpm_option_set_logcb | ( | alpm_handle_t * | handle, |
alpm_cb_log | cb, | ||
void * | ctx ) |
Sets the callback used for logging.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_logfile | ( | alpm_handle_t * | handle, |
const char * | logfile ) |
Sets the logfile path.
handle | the context handle |
logfile | path to the new location of the logfile |
References ALPM_ERR_MEMORY, ALPM_ERR_WRONG_ARGS, ALPM_LOG_DEBUG, CHECK_HANDLE, FREE, RET_ERR, and STRDUP.
int alpm_option_set_noextracts | ( | alpm_handle_t * | handle, |
alpm_list_t * | noextract ) |
Sets the list of no-extract files.
handle | the context handle |
noextract | a char* list of file to not extract. The list will be duped and the original will still need to be freed by the caller. |
int alpm_option_set_noupgrades | ( | alpm_handle_t * | handle, |
alpm_list_t * | noupgrade ) |
Sets the list of no-upgrade files.
handle | the context handle |
noupgrade | a char* list of file to not upgrade. The list will be duped and the original will still need to be freed by the caller. |
int alpm_option_set_overwrite_files | ( | alpm_handle_t * | handle, |
alpm_list_t * | globs ) |
Sets the overwritable files.
handle | the context handle |
globs | a char* list of overwritable file globs. The list will be duped and the original will still need to be freed by the caller. |
int alpm_option_set_parallel_downloads | ( | alpm_handle_t * | handle, |
unsigned int | num_streams ) |
Sets number of parallel streams to download database and package files.
handle | the context handle |
num_streams | number of parallel download streams |
References ALPM_ERR_WRONG_ARGS, ASSERT, CHECK_HANDLE, and RET_ERR.
int alpm_option_set_progresscb | ( | alpm_handle_t * | handle, |
alpm_cb_progress | cb, | ||
void * | ctx ) |
Sets the callback used for operation progress.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_questioncb | ( | alpm_handle_t * | handle, |
alpm_cb_question | cb, | ||
void * | ctx ) |
Sets the callback used for questions.
handle | the context handle |
cb | the cb to use |
ctx | user-provided context to pass to cb |
References CHECK_HANDLE.
Referenced by curl_download_internal_sandboxed().
int alpm_option_set_remote_file_siglevel | ( | alpm_handle_t * | handle, |
int | level ) |
Set the remote file siglevel.
handle | the context handle |
level | a alpm_siglevel_t bitfield of the level to set |
References ALPM_ERR_MISSING_CAPABILITY_SIGNATURES, ALPM_SIG_USE_DEFAULT, CHECK_HANDLE, level, and RET_ERR.
int alpm_option_set_sandboxuser | ( | alpm_handle_t * | handle, |
const char * | sandboxuser ) |
Sets the user to switch to for sensitive operations.
handle | the context handle |
sandboxuser | the user to set |
References ALPM_ERR_MEMORY, ALPM_LOG_DEBUG, CHECK_HANDLE, FREE, RET_ERR, and STRDUP.
int alpm_option_set_usesyslog | ( | alpm_handle_t * | handle, |
int | usesyslog ) |
Sets whether to use syslog (0 is FALSE, TRUE otherwise).
handle | the context handle |
usesyslog | whether to use the syslog (0 is FALSE, TRUE otherwise) |
References CHECK_HANDLE.