alpm_api_options(3)

NAME
alpm_api_options

SYNOPSIS

  Functions
alpm_cb_log alpm_option_get_logcb (alpm_handle_t *handle)
Returns the callback used for logging.
int alpm_option_set_logcb (alpm_handle_t *handle, alpm_cb_log cb)
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.
int alpm_option_set_dlcb (alpm_handle_t *handle, alpm_cb_download cb)
Sets the callback used to report download progress.
alpm_cb_fetch alpm_option_get_fetchcb (alpm_handle_t *handle)
Returns the downloading callback.
int alpm_option_set_fetchcb (alpm_handle_t *handle, alpm_cb_fetch cb)
Sets the downloading callback.
alpm_cb_totaldl alpm_option_get_totaldlcb (alpm_handle_t *handle)
Returns the callback used to report total download size.
int alpm_option_set_totaldlcb (alpm_handle_t *handle, alpm_cb_totaldl cb)
Sets the callback used to report total download size.
alpm_cb_event alpm_option_get_eventcb (alpm_handle_t *handle)
Returns the callback used for events.
int alpm_option_set_eventcb (alpm_handle_t *handle, alpm_cb_event cb)
Sets the callback used for events.
alpm_cb_question alpm_option_get_questioncb (alpm_handle_t *handle)
Returns the callback used for questions.
int alpm_option_set_questioncb (alpm_handle_t *handle, alpm_cb_question cb)
Sets the callback used for questions.
alpm_cb_progress alpm_option_get_progresscb (alpm_handle_t *handle)
Returns the callback used for operation progress.
int alpm_option_set_progresscb (alpm_handle_t *handle, alpm_cb_progress cb)
Sets the callback used for operation progress.
const char * alpm_option_get_root (alpm_handle_t *handle)
Returns the root of the destination filesystem.
const char * alpm_option_get_dbpath (alpm_handle_t *handle)
Returns the path to the database directory.
const char * alpm_option_get_lockfile (alpm_handle_t *handle)
Get the name of the database lock file.
alpm_list_t * alpm_option_get_overwrite_files (alpm_handle_t *handle)
int alpm_option_set_overwrite_files (alpm_handle_t *handle, alpm_list_t *globs)
int alpm_option_add_overwrite_file (alpm_handle_t *handle, const char *glob)
int alpm_option_remove_overwrite_file (alpm_handle_t *handle, const char *glob)
const char * alpm_option_get_logfile (alpm_handle_t *handle)
Returns the logfile name.
int alpm_option_set_logfile (alpm_handle_t *handle, const char *logfile)
Sets the logfile name.
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.
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).
const char * alpm_option_get_arch (alpm_handle_t *handle)
Returns the targeted architecture.
int alpm_option_set_arch (alpm_handle_t *handle, const char *arch)
Sets the targeted architecture.
int alpm_option_get_checkspace (alpm_handle_t *handle)
int alpm_option_set_checkspace (alpm_handle_t *handle, int checkspace)
const char * alpm_option_get_dbext (alpm_handle_t *handle)
int alpm_option_set_dbext (alpm_handle_t *handle, const char *dbext)
int alpm_option_get_default_siglevel (alpm_handle_t *handle)
int alpm_option_set_default_siglevel (alpm_handle_t *handle, int level)
int alpm_option_get_local_file_siglevel (alpm_handle_t *handle)
int alpm_option_set_local_file_siglevel (alpm_handle_t *handle, int level)
int alpm_option_get_remote_file_siglevel (alpm_handle_t *handle)
int alpm_option_set_remote_file_siglevel (alpm_handle_t *handle, int level)
int alpm_option_set_disable_dl_timeout (alpm_handle_t *handle, unsigned short disable_dl_timeout)

  Accessors to the list of package cache directories.
alpm_list_t * alpm_option_get_cachedirs (alpm_handle_t *handle)
int alpm_option_set_cachedirs (alpm_handle_t *handle, alpm_list_t *cachedirs)
int alpm_option_add_cachedir (alpm_handle_t *handle, const char *cachedir)
int alpm_option_remove_cachedir (alpm_handle_t *handle, const char *cachedir)

  Accessors to the list of package hook directories.
alpm_list_t * alpm_option_get_hookdirs (alpm_handle_t *handle)
int alpm_option_set_hookdirs (alpm_handle_t *handle, alpm_list_t *hookdirs)
int alpm_option_add_hookdir (alpm_handle_t *handle, const char *hookdir)
int alpm_option_remove_hookdir (alpm_handle_t *handle, const char *hookdir)

  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)
int alpm_option_add_noupgrade (alpm_handle_t *handle, const char *path)
int alpm_option_set_noupgrades (alpm_handle_t *handle, alpm_list_t *noupgrade)
int alpm_option_remove_noupgrade (alpm_handle_t *handle, const char *path)
int alpm_option_match_noupgrade (alpm_handle_t *handle, const char *path)

  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)
int alpm_option_add_noextract (alpm_handle_t *handle, const char *path)
int alpm_option_set_noextracts (alpm_handle_t *handle, alpm_list_t *noextract)
int alpm_option_remove_noextract (alpm_handle_t *handle, const char *path)
int alpm_option_match_noextract (alpm_handle_t *handle, const char *path)

  Accessors to the list of ignored packages.
These functions modify the list of packages that should be ignored by a sysupgrade.
alpm_list_t * alpm_option_get_ignorepkgs (alpm_handle_t *handle)
int alpm_option_add_ignorepkg (alpm_handle_t *handle, const char *pkg)
int alpm_option_set_ignorepkgs (alpm_handle_t *handle, alpm_list_t *ignorepkgs)
int alpm_option_remove_ignorepkg (alpm_handle_t *handle, const char *pkg)

  Accessors to the list of ignored groups.
These functions modify the list of groups whose packages should be ignored by a sysupgrade.
alpm_list_t * alpm_option_get_ignoregroups (alpm_handle_t *handle)
int alpm_option_add_ignoregroup (alpm_handle_t *handle, const char *grp)
int alpm_option_set_ignoregroups (alpm_handle_t *handle, alpm_list_t *ignoregrps)
int alpm_option_remove_ignoregroup (alpm_handle_t *handle, const char *grp)

  Accessors to the list of ignored dependencies.
These functions modify the list of dependencies that should be ignored by a sysupgrade.
alpm_list_t * alpm_option_get_assumeinstalled (alpm_handle_t *handle)
int alpm_option_add_assumeinstalled (alpm_handle_t *handle, const alpm_depend_t *dep)
int alpm_option_set_assumeinstalled (alpm_handle_t *handle, alpm_list_t *deps)
int alpm_option_remove_assumeinstalled (alpm_handle_t *handle, const alpm_depend_t *dep)

Detailed Description

Libalpm option getters and setters

Function Documentation

  const char* alpm_option_get_arch (alpm_handle_t * handle)

Returns the targeted architecture.

  const char* alpm_option_get_dbpath (alpm_handle_t * handle)

Returns the path to the database directory. Read-only.

  alpm_cb_download alpm_option_get_dlcb (alpm_handle_t * handle)

Returns the callback used to report download progress.

  alpm_cb_event alpm_option_get_eventcb (alpm_handle_t * handle)

Returns the callback used for events.

  alpm_cb_fetch alpm_option_get_fetchcb (alpm_handle_t * handle)

Returns the downloading callback.

  const char* alpm_option_get_gpgdir (alpm_handle_t * handle)

Returns the path to libalpm's GnuPG home directory.

  const char* alpm_option_get_lockfile (alpm_handle_t * handle)

Get the name of the database lock file. Read-only.

  alpm_cb_log alpm_option_get_logcb (alpm_handle_t * handle)

Returns the callback used for logging.

  const char* alpm_option_get_logfile (alpm_handle_t * handle)

Returns the logfile name.

  alpm_cb_progress alpm_option_get_progresscb (alpm_handle_t * handle)

Returns the callback used for operation progress.

  alpm_cb_question alpm_option_get_questioncb (alpm_handle_t * handle)

Returns the callback used for questions.

  const char* alpm_option_get_root (alpm_handle_t * handle)

Returns the root of the destination filesystem. Read-only.

  alpm_cb_totaldl alpm_option_get_totaldlcb (alpm_handle_t * handle)

Returns the callback used to report total download size.

  int alpm_option_get_usesyslog (alpm_handle_t * handle)

Returns whether to use syslog (0 is FALSE, TRUE otherwise).

  int alpm_option_set_arch (alpm_handle_t * handle, const char * arch)

Sets the targeted architecture.

  int alpm_option_set_dlcb (alpm_handle_t * handle, alpm_cb_download cb)

Sets the callback used to report download progress.

  int alpm_option_set_eventcb (alpm_handle_t * handle, alpm_cb_event cb)

Sets the callback used for events.

  int alpm_option_set_fetchcb (alpm_handle_t * handle, alpm_cb_fetch cb)

Sets the downloading callback.

  int alpm_option_set_gpgdir (alpm_handle_t * handle, const char * gpgdir)

Sets the path to libalpm's GnuPG home directory.

  int alpm_option_set_logcb (alpm_handle_t * handle, alpm_cb_log cb)

Sets the callback used for logging.

  int alpm_option_set_logfile (alpm_handle_t * handle, const char * logfile)

Sets the logfile name.

  int alpm_option_set_progresscb (alpm_handle_t * handle, alpm_cb_progress cb)

Sets the callback used for operation progress.

  int alpm_option_set_questioncb (alpm_handle_t * handle, alpm_cb_question cb)

Sets the callback used for questions.

  int alpm_option_set_totaldlcb (alpm_handle_t * handle, alpm_cb_totaldl cb)

Sets the callback used to report total download size.

  int alpm_option_set_usesyslog (alpm_handle_t * handle, int usesyslog)

Sets whether to use syslog (0 is FALSE, TRUE otherwise).

Author

Generated automatically by Doxygen for libalpm from the source code.