- alpm_backup_t
alias alpm_backup_t = _alpm_backup_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_cb_download
alias alpm_cb_download = void function(const(char)* filename, off_t xfered, off_t total)
Type of download progress callbacks.
@param filename the name of the file being downloaded
@param xfered the number of transferred bytes
@param total the total number of bytes to transfer
- alpm_cb_event
alias alpm_cb_event = void function(alpm_event_t*)
- alpm_cb_fetch
alias alpm_cb_fetch = int function(const(char)* url, const(char)* localpath, int force)
A callback for downloading files
@param url the URL of the file to be downloaded
@param localpath the directory to which the file should be downloaded
@param force whether to force an update, even if the file is the same
@return 0 on success, 1 if the file exists and is identical, -1 on
error.
- alpm_cb_log
alias alpm_cb_log = void function(alpm_loglevel_t, const(char)*, va_list)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_cb_progress
alias alpm_cb_progress = void function(alpm_progress_t, const(char)*, int, size_t, size_t)
- alpm_cb_question
alias alpm_cb_question = void function(alpm_question_t*)
- alpm_cb_totaldl
alias alpm_cb_totaldl = void function(off_t total)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_conflict_t
alias alpm_conflict_t = _alpm_conflict_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_t
alias alpm_db_t = __alpm_db_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_usage_t
alias alpm_db_usage_t = _alpm_db_usage_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_depend_t
alias alpm_depend_t = _alpm_depend_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_depmissing_t
alias alpm_depmissing_t = _alpm_depmissing_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_depmod_t
alias alpm_depmod_t = _alpm_depmod_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_errno_t
alias alpm_errno_t = _alpm_errno_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_any_t
alias alpm_event_any_t = _alpm_event_any_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_database_missing_t
alias alpm_event_database_missing_t = _alpm_event_database_missing_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_hook_run_t
alias alpm_event_hook_run_t = _alpm_event_hook_run_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_hook_t
alias alpm_event_hook_t = _alpm_event_hook_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_optdep_removal_t
alias alpm_event_optdep_removal_t = _alpm_event_optdep_removal_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_package_operation_t
alias alpm_event_package_operation_t = _alpm_event_package_operation_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_pacnew_created_t
alias alpm_event_pacnew_created_t = _alpm_event_pacnew_created_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_pacsave_created_t
alias alpm_event_pacsave_created_t = _alpm_event_pacsave_created_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_pkgdownload_t
alias alpm_event_pkgdownload_t = _alpm_event_pkgdownload_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_scriptlet_info_t
alias alpm_event_scriptlet_info_t = _alpm_event_scriptlet_info_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_t
alias alpm_event_t = _alpm_event_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_event_type_t
alias alpm_event_type_t = _alpm_event_type_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_file_t
alias alpm_file_t = _alpm_file_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_fileconflict_t
alias alpm_fileconflict_t = _alpm_fileconflict_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_fileconflicttype_t
alias alpm_fileconflicttype_t = _alpm_fileconflicttype_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_filelist_t
alias alpm_filelist_t = _alpm_filelist_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_group_t
alias alpm_group_t = _alpm_group_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_handle_t
alias alpm_handle_t = __alpm_handle_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_hook_when_t
alias alpm_hook_when_t = _alpm_hook_when_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_loglevel_t
alias alpm_loglevel_t = _alpm_loglevel_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_package_operation_t
alias alpm_package_operation_t = _alpm_package_operation_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pgpkey_t
alias alpm_pgpkey_t = _alpm_pgpkey_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkg_t
alias alpm_pkg_t = __alpm_pkg_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkgfrom_t
alias alpm_pkgfrom_t = _alpm_pkgfrom_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkgreason_t
alias alpm_pkgreason_t = _alpm_pkgreason_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkgvalidation_t
alias alpm_pkgvalidation_t = _alpm_pkgvalidation_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_progress_t
alias alpm_progress_t = _alpm_progress_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_any_t
alias alpm_question_any_t = _alpm_question_any_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_conflict_t
alias alpm_question_conflict_t = _alpm_question_conflict_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_corrupted_t
alias alpm_question_corrupted_t = _alpm_question_corrupted_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_import_key_t
alias alpm_question_import_key_t = _alpm_question_import_key_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_install_ignorepkg_t
alias alpm_question_install_ignorepkg_t = _alpm_question_install_ignorepkg_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_remove_pkgs_t
alias alpm_question_remove_pkgs_t = _alpm_question_remove_pkgs_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_replace_t
alias alpm_question_replace_t = _alpm_question_replace_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_select_provider_t
alias alpm_question_select_provider_t = _alpm_question_select_provider_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_t
alias alpm_question_t = _alpm_question_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_question_type_t
alias alpm_question_type_t = _alpm_question_type_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_siglevel_t
alias alpm_siglevel_t = _alpm_siglevel_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_siglist_t
alias alpm_siglist_t = _alpm_siglist_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_sigresult_t
alias alpm_sigresult_t = _alpm_sigresult_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_sigstatus_t
alias alpm_sigstatus_t = _alpm_sigstatus_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_sigvalidity_t
alias alpm_sigvalidity_t = _alpm_sigvalidity_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_time_t
alias alpm_time_t = c_long
@addtogroup alpm_api Public API
The libalpm Public API
@{
- alpm_trans_t
alias alpm_trans_t = __alpm_trans_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_transflag_t
alias alpm_transflag_t = _alpm_transflag_t
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- mode_t
alias mode_t = uint
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- off_t
alias off_t = int
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_add_pkg
int alpm_add_pkg(alpm_handle_t* handle, alpm_pkg_t* pkg)
Add a package to the transaction.
If the package was loaded by alpm_pkg_load(), it will be freed upon
alpm_trans_release() invocation.
@param handle the context handle
@param pkg the package to add
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_capabilities
int alpm_capabilities()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_checkconflicts
alpm_list_t* alpm_checkconflicts(alpm_handle_t* handle, alpm_list_t* pkglist)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_checkdeps
alpm_list_t* alpm_checkdeps(alpm_handle_t* handle, alpm_list_t* pkglist, alpm_list_t* remove, alpm_list_t* upgrade, int reversedeps)
@addtogroup alpm_api_depends Dependency Functions
Functions dealing with libalpm representation of dependency
information.
@{
- alpm_compute_md5sum
char* alpm_compute_md5sum(const(char)* filename)
- alpm_compute_sha256sum
char* alpm_compute_sha256sum(const(char)* filename)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_conflict_free
void alpm_conflict_free(alpm_conflict_t* conflict)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_add_server
int alpm_db_add_server(alpm_db_t* db, const(char)* url)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_check_pgp_signature
int alpm_db_check_pgp_signature(alpm_db_t* db, alpm_siglist_t* siglist)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_get_group
alpm_group_t* alpm_db_get_group(alpm_db_t* db, const(char)* name)
Get a group entry from a package database.
@param db pointer to the package database to get the group from
@param name of the group
@return the groups entry on success, NULL on error
- alpm_db_get_groupcache
alpm_list_t* alpm_db_get_groupcache(alpm_db_t* db)
Get the group cache of a package database.
@param db pointer to the package database to get the group from
@return the list of groups on success, NULL on error
- alpm_db_get_name
const(char)* alpm_db_get_name(const(alpm_db_t)* db)
Get the name of a package database.
@param db pointer to the package database
@return the name of the package database, NULL on error
- alpm_db_get_pkg
alpm_pkg_t* alpm_db_get_pkg(alpm_db_t* db, const(char)* name)
Get a package entry from a package database.
@param db pointer to the package database to get the package from
@param name of the package
@return the package entry on success, NULL on error
- alpm_db_get_pkgcache
alpm_list_t* alpm_db_get_pkgcache(alpm_db_t* db)
Get the package cache of a package database.
@param db pointer to the package database to get the package from
@return the list of packages on success, NULL on error
- alpm_db_get_servers
alpm_list_t* alpm_db_get_servers(const(alpm_db_t)* db)
@name Accessors to the list of servers for a database.
@{
- alpm_db_get_siglevel
int alpm_db_get_siglevel(alpm_db_t* db)
Get the signature verification level for a database.
Will return the default verification level if this database is set up
with ALPM_SIG_USE_DEFAULT.
@param db pointer to the package database
@return the signature verification level
- alpm_db_get_usage
int alpm_db_get_usage(alpm_db_t* db, int* usage)
Gets the usage of a database.
@param db pointer to the package database to get the status of
@param usage pointer to an alpm_db_usage_t to store db's status
@return 0 on success, or -1 on error
- alpm_db_get_valid
int alpm_db_get_valid(alpm_db_t* db)
Check the validity of a database.
This is most useful for sync databases and verifying signature status.
If invalid, the handle error code will be set accordingly.
@param db pointer to the package database
@return 0 if valid, -1 if invalid (pm_errno is set accordingly)
- alpm_db_remove_server
int alpm_db_remove_server(alpm_db_t* db, const(char)* url)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_search
alpm_list_t* alpm_db_search(alpm_db_t* db, const(alpm_list_t)* needles)
Searches a database with regular expressions.
@param db pointer to the package database to search in
@param needles a list of regular expressions to search for
@return the list of packages matching all regular expressions on success, NULL on error
- alpm_db_set_servers
int alpm_db_set_servers(alpm_db_t* db, alpm_list_t* servers)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_db_set_usage
int alpm_db_set_usage(alpm_db_t* db, int usage)
Sets the usage of a database.
@param db pointer to the package database to set the status for
@param usage a bitmask of alpm_db_usage_t values
@return 0 on success, or -1 on error
- alpm_db_unregister
int alpm_db_unregister(alpm_db_t* db)
Unregister a package database.
@param db pointer to the package database to unregister
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_db_update
int alpm_db_update(int force, alpm_db_t* db)
- alpm_decode_signature
int alpm_decode_signature(const(char)* base64_data, ubyte** data, size_t* data_len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_dep_compute_string
char* alpm_dep_compute_string(const(alpm_depend_t)* dep)
Returns a newly allocated string representing the dependency information.
@param dep a dependency info structure
@return a formatted string, e.g. "glibc>=2.12"
- alpm_dep_free
void alpm_dep_free(alpm_depend_t* dep)
Free a dependency info structure
@param dep struct to free
- alpm_dep_from_string
alpm_depend_t* alpm_dep_from_string(const(char)* depstring)
Return a newly allocated dependency information parsed from a string
@param depstring a formatted string, e.g. "glibc=2.12"
@return a dependency info structure
- alpm_depmissing_free
void alpm_depmissing_free(alpm_depmissing_t* miss)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_errno
alpm_errno_t alpm_errno(alpm_handle_t* handle)
Returns the current error code from the handle.
- alpm_extract_keyid
int alpm_extract_keyid(alpm_handle_t* handle, const(char)* identifier, const(ubyte)* sig, size_t len, alpm_list_t** keys)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_fetch_pkgurl
char* alpm_fetch_pkgurl(alpm_handle_t* handle, const(char)* url)
Fetch a remote pkg.
@param handle the context handle
@param url URL of the package to download
@return the downloaded filepath on success, NULL on error
- alpm_fileconflict_free
void alpm_fileconflict_free(alpm_fileconflict_t* conflict)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_filelist_contains
alpm_file_t* alpm_filelist_contains(alpm_filelist_t* filelist, const(char)* path)
Determines whether a package filelist contains a given path.
The provided path should be relative to the install root with no leading
slashes, e.g. "etc/localtime". When searching for directories, the path must
have a trailing slash.
@param filelist a pointer to a package filelist
@param path the path to search for in the package
@return a pointer to the matching file or NULL if not found
- alpm_find_dbs_satisfier
alpm_pkg_t* alpm_find_dbs_satisfier(alpm_handle_t* handle, alpm_list_t* dbs, const(char)* depstring)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_find_group_pkgs
alpm_list_t* alpm_find_group_pkgs(alpm_list_t* dbs, const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_find_satisfier
alpm_pkg_t* alpm_find_satisfier(alpm_list_t* pkgs, const(char)* depstring)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_get_localdb
alpm_db_t* alpm_get_localdb(alpm_handle_t* handle)
Get the database of locally installed packages.
The returned pointer points to an internal structure
of libalpm which should only be manipulated through
libalpm functions.
@return a reference to the local database
- alpm_get_syncdbs
alpm_list_t* alpm_get_syncdbs(alpm_handle_t* handle)
Get the list of sync databases.
Returns a list of alpm_db_t structures, one for each registered
sync database.
@param handle the context handle
@return a reference to an internal list of alpm_db_t structures
- alpm_initialize
alpm_handle_t* alpm_initialize(const(char)* root, const(char)* dbpath, alpm_errno_t* err)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_logaction
int alpm_logaction(alpm_handle_t* handle, const(char)* prefix, const(char)* fmt, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_assumeinstalled
int alpm_option_add_assumeinstalled(alpm_handle_t* handle, const(alpm_depend_t)* dep)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_cachedir
int alpm_option_add_cachedir(alpm_handle_t* handle, const(char)* cachedir)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_hookdir
int alpm_option_add_hookdir(alpm_handle_t* handle, const(char)* hookdir)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_ignoregroup
int alpm_option_add_ignoregroup(alpm_handle_t* handle, const(char)* grp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_ignorepkg
int alpm_option_add_ignorepkg(alpm_handle_t* handle, const(char)* pkg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_noextract
int alpm_option_add_noextract(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_noupgrade
int alpm_option_add_noupgrade(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_add_overwrite_file
int alpm_option_add_overwrite_file(alpm_handle_t* handle, const(char)* glob)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_arch
const(char)* alpm_option_get_arch(alpm_handle_t* handle)
Returns the targeted architecture.
- alpm_option_get_assumeinstalled
alpm_list_t* alpm_option_get_assumeinstalled(alpm_handle_t* handle)
@name Accessors to the list of ignored dependencies.
These functions modify the list of dependencies that
should be ignored by a sysupgrade.
@{
- alpm_option_get_cachedirs
alpm_list_t* alpm_option_get_cachedirs(alpm_handle_t* handle)
@name Accessors to the list of package cache directories.
@{
- alpm_option_get_checkspace
int alpm_option_get_checkspace(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_dbext
const(char)* alpm_option_get_dbext(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_dbpath
const(char)* alpm_option_get_dbpath(alpm_handle_t* handle)
Returns the path to the database directory. Read-only.
- alpm_option_get_default_siglevel
int alpm_option_get_default_siglevel(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_dlcb
alpm_cb_download alpm_option_get_dlcb(alpm_handle_t* handle)
Returns the callback used to report download progress.
- alpm_option_get_eventcb
alpm_cb_event alpm_option_get_eventcb(alpm_handle_t* handle)
Returns the callback used for events.
- alpm_option_get_fetchcb
alpm_cb_fetch alpm_option_get_fetchcb(alpm_handle_t* handle)
Returns the downloading callback.
- alpm_option_get_gpgdir
const(char)* alpm_option_get_gpgdir(alpm_handle_t* handle)
Returns the path to libalpm's GnuPG home directory.
- alpm_option_get_hookdirs
alpm_list_t* alpm_option_get_hookdirs(alpm_handle_t* handle)
@name Accessors to the list of package hook directories.
@{
- alpm_option_get_ignoregroups
alpm_list_t* alpm_option_get_ignoregroups(alpm_handle_t* handle)
@name Accessors to the list of ignored groups.
These functions modify the list of groups whose packages
should be ignored by a sysupgrade.
@{
- alpm_option_get_ignorepkgs
alpm_list_t* alpm_option_get_ignorepkgs(alpm_handle_t* handle)
@name Accessors to the list of ignored packages.
These functions modify the list of packages that
should be ignored by a sysupgrade.
@{
- alpm_option_get_local_file_siglevel
int alpm_option_get_local_file_siglevel(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_lockfile
const(char)* alpm_option_get_lockfile(alpm_handle_t* handle)
Get the name of the database lock file. Read-only.
- alpm_option_get_logcb
alpm_cb_log alpm_option_get_logcb(alpm_handle_t* handle)
Returns the callback used for logging.
- alpm_option_get_logfile
const(char)* alpm_option_get_logfile(alpm_handle_t* handle)
Returns the logfile name.
- alpm_option_get_noextracts
alpm_list_t* alpm_option_get_noextracts(alpm_handle_t* handle)
@name 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_option_get_noupgrades
alpm_list_t* alpm_option_get_noupgrades(alpm_handle_t* handle)
@name Accessors to the list of no-upgrade files.
These functions modify the list of files which should
not be updated by package installation.
@{
- alpm_option_get_overwrite_files
alpm_list_t* alpm_option_get_overwrite_files(alpm_handle_t* handle)
- alpm_option_get_progresscb
alpm_cb_progress alpm_option_get_progresscb(alpm_handle_t* handle)
Returns the callback used for operation progress.
- alpm_option_get_questioncb
alpm_cb_question alpm_option_get_questioncb(alpm_handle_t* handle)
Returns the callback used for questions.
- alpm_option_get_remote_file_siglevel
int alpm_option_get_remote_file_siglevel(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_get_root
const(char)* alpm_option_get_root(alpm_handle_t* handle)
Returns the root of the destination filesystem. Read-only.
- alpm_option_get_totaldlcb
alpm_cb_totaldl alpm_option_get_totaldlcb(alpm_handle_t* handle)
Returns the callback used to report total download size.
- alpm_option_get_usesyslog
int alpm_option_get_usesyslog(alpm_handle_t* handle)
Returns whether to use syslog (0 is FALSE, TRUE otherwise).
- alpm_option_match_noextract
int alpm_option_match_noextract(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_match_noupgrade
int alpm_option_match_noupgrade(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_assumeinstalled
int alpm_option_remove_assumeinstalled(alpm_handle_t* handle, const(alpm_depend_t)* dep)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_cachedir
int alpm_option_remove_cachedir(alpm_handle_t* handle, const(char)* cachedir)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_hookdir
int alpm_option_remove_hookdir(alpm_handle_t* handle, const(char)* hookdir)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_ignoregroup
int alpm_option_remove_ignoregroup(alpm_handle_t* handle, const(char)* grp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_ignorepkg
int alpm_option_remove_ignorepkg(alpm_handle_t* handle, const(char)* pkg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_noextract
int alpm_option_remove_noextract(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_noupgrade
int alpm_option_remove_noupgrade(alpm_handle_t* handle, const(char)* path)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_remove_overwrite_file
int alpm_option_remove_overwrite_file(alpm_handle_t* handle, const(char)* glob)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_arch
int alpm_option_set_arch(alpm_handle_t* handle, const(char)* arch)
Sets the targeted architecture.
- alpm_option_set_assumeinstalled
int alpm_option_set_assumeinstalled(alpm_handle_t* handle, alpm_list_t* deps)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_cachedirs
int alpm_option_set_cachedirs(alpm_handle_t* handle, alpm_list_t* cachedirs)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_checkspace
int alpm_option_set_checkspace(alpm_handle_t* handle, int checkspace)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_dbext
int alpm_option_set_dbext(alpm_handle_t* handle, const(char)* dbext)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_default_siglevel
int alpm_option_set_default_siglevel(alpm_handle_t* handle, int level)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_disable_dl_timeout
int alpm_option_set_disable_dl_timeout(alpm_handle_t* handle, ushort disable_dl_timeout)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_dlcb
int alpm_option_set_dlcb(alpm_handle_t* handle, alpm_cb_download cb)
Sets the callback used to report download progress.
- alpm_option_set_eventcb
int alpm_option_set_eventcb(alpm_handle_t* handle, alpm_cb_event cb)
Sets the callback used for events.
- alpm_option_set_fetchcb
int alpm_option_set_fetchcb(alpm_handle_t* handle, alpm_cb_fetch cb)
Sets the downloading callback.
- alpm_option_set_gpgdir
int alpm_option_set_gpgdir(alpm_handle_t* handle, const(char)* gpgdir)
Sets the path to libalpm's GnuPG home directory.
- alpm_option_set_hookdirs
int alpm_option_set_hookdirs(alpm_handle_t* handle, alpm_list_t* hookdirs)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_ignoregroups
int alpm_option_set_ignoregroups(alpm_handle_t* handle, alpm_list_t* ignoregrps)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_ignorepkgs
int alpm_option_set_ignorepkgs(alpm_handle_t* handle, alpm_list_t* ignorepkgs)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_local_file_siglevel
int alpm_option_set_local_file_siglevel(alpm_handle_t* handle, int level)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_logcb
int alpm_option_set_logcb(alpm_handle_t* handle, alpm_cb_log cb)
Sets the callback used for logging.
- alpm_option_set_logfile
int alpm_option_set_logfile(alpm_handle_t* handle, const(char)* logfile)
- alpm_option_set_noextracts
int alpm_option_set_noextracts(alpm_handle_t* handle, alpm_list_t* noextract)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_noupgrades
int alpm_option_set_noupgrades(alpm_handle_t* handle, alpm_list_t* noupgrade)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_overwrite_files
int alpm_option_set_overwrite_files(alpm_handle_t* handle, alpm_list_t* globs)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_progresscb
int alpm_option_set_progresscb(alpm_handle_t* handle, alpm_cb_progress cb)
Sets the callback used for operation progress.
- alpm_option_set_questioncb
int alpm_option_set_questioncb(alpm_handle_t* handle, alpm_cb_question cb)
Sets the callback used for questions.
- alpm_option_set_remote_file_siglevel
int alpm_option_set_remote_file_siglevel(alpm_handle_t* handle, int level)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_option_set_totaldlcb
int alpm_option_set_totaldlcb(alpm_handle_t* handle, alpm_cb_totaldl cb)
Sets the callback used to report total download size.
- alpm_option_set_usesyslog
int alpm_option_set_usesyslog(alpm_handle_t* handle, int usesyslog)
Sets whether to use syslog (0 is FALSE, TRUE otherwise).
- alpm_pkg_changelog_close
int alpm_pkg_changelog_close(const(alpm_pkg_t)* pkg, void* fp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkg_changelog_open
void* alpm_pkg_changelog_open(alpm_pkg_t* pkg)
Open a package changelog for reading.
Similar to fopen in functionality, except that the returned 'file
stream' could really be from an archive as well as from the database.
@param pkg the package to read the changelog of (either file or db)
@return a 'file stream' to the package changelog
- alpm_pkg_changelog_read
size_t alpm_pkg_changelog_read(void* ptr, size_t size, const(alpm_pkg_t)* pkg, void* fp)
Read data from an open changelog 'file stream'.
Similar to fread in functionality, this function takes a buffer and
amount of data to read. If an error occurs pm_errno will be set.
@param ptr a buffer to fill with raw changelog data
@param size the size of the buffer
@param pkg the package that the changelog is being read from
@param fp a 'file stream' to the package changelog
@return the number of characters read, or 0 if there is no more data or an
error occurred.
- alpm_pkg_check_pgp_signature
int alpm_pkg_check_pgp_signature(alpm_pkg_t* pkg, alpm_siglist_t* siglist)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkg_checkmd5sum
int alpm_pkg_checkmd5sum(alpm_pkg_t* pkg)
Check the integrity (with md5) of a package from the sync cache.
@param pkg package pointer
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_pkg_compute_optionalfor
alpm_list_t* alpm_pkg_compute_optionalfor(alpm_pkg_t* pkg)
Computes the list of packages optionally requiring a given package.
The return value of this function is a newly allocated
list of package names (char*), it should be freed by the caller.
@param pkg a package
@return the list of packages optionally requiring pkg
- alpm_pkg_compute_requiredby
alpm_list_t* alpm_pkg_compute_requiredby(alpm_pkg_t* pkg)
Computes the list of packages requiring a given package.
The return value of this function is a newly allocated
list of package names (char*), it should be freed by the caller.
@param pkg a package
@return the list of packages requiring pkg
- alpm_pkg_download_size
off_t alpm_pkg_download_size(alpm_pkg_t* newpkg)
Returns the size of download.
Returns the size of the files that will be downloaded to install a
package.
@param newpkg the new package to upgrade to
@return the size of the download
- alpm_pkg_find
alpm_pkg_t* alpm_pkg_find(alpm_list_t* haystack, const(char)* needle)
Find a package in a list by name.
@param haystack a list of alpm_pkg_t
@param needle the package name
@return a pointer to the package if found or NULL
- alpm_pkg_free
int alpm_pkg_free(alpm_pkg_t* pkg)
Free a package.
@param pkg package pointer to free
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_pkg_get_arch
const(char)* alpm_pkg_get_arch(alpm_pkg_t* pkg)
Returns the architecture for which the package was built.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_backup
alpm_list_t* alpm_pkg_get_backup(alpm_pkg_t* pkg)
Returns the list of files backed up when installing pkg.
@param pkg a pointer to package
@return a reference to a list of alpm_backup_t objects
- alpm_pkg_get_base
const(char)* alpm_pkg_get_base(alpm_pkg_t* pkg)
Returns the package base name.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_base64_sig
const(char)* alpm_pkg_get_base64_sig(alpm_pkg_t* pkg)
Returns the base64 encoded package signature.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_builddate
alpm_time_t alpm_pkg_get_builddate(alpm_pkg_t* pkg)
Returns the build timestamp of the package.
@param pkg a pointer to package
@return the timestamp of the build time
- alpm_pkg_get_checkdepends
alpm_list_t* alpm_pkg_get_checkdepends(alpm_pkg_t* pkg)
Returns a list of package check dependencies
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_conflicts
alpm_list_t* alpm_pkg_get_conflicts(alpm_pkg_t* pkg)
Returns the list of packages conflicting with pkg.
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_db
alpm_db_t* alpm_pkg_get_db(alpm_pkg_t* pkg)
Returns the database containing pkg.
Returns a pointer to the alpm_db_t structure the package is
originating from, or NULL if the package was loaded from a file.
@param pkg a pointer to package
@return a pointer to the DB containing pkg, or NULL.
- alpm_pkg_get_depends
alpm_list_t* alpm_pkg_get_depends(alpm_pkg_t* pkg)
Returns the list of package dependencies as alpm_depend_t.
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_desc
const(char)* alpm_pkg_get_desc(alpm_pkg_t* pkg)
Returns the package description.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_filename
const(char)* alpm_pkg_get_filename(alpm_pkg_t* pkg)
Gets the name of the file from which the package was loaded.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_files
alpm_filelist_t* alpm_pkg_get_files(alpm_pkg_t* pkg)
Returns the list of files installed by pkg.
The filenames are relative to the install root,
and do not include leading slashes.
@param pkg a pointer to package
@return a pointer to a filelist object containing a count and an array of
package file objects
- alpm_pkg_get_groups
alpm_list_t* alpm_pkg_get_groups(alpm_pkg_t* pkg)
Returns the list of package groups.
@param pkg a pointer to package
@return a pointer to an internal list of strings.
- alpm_pkg_get_installdate
alpm_time_t alpm_pkg_get_installdate(alpm_pkg_t* pkg)
Returns the install timestamp of the package.
@param pkg a pointer to package
@return the timestamp of the install time
- alpm_pkg_get_isize
off_t alpm_pkg_get_isize(alpm_pkg_t* pkg)
Returns the installed size of the package.
@param pkg a pointer to package
@return the total size of files installed by the package.
- alpm_pkg_get_licenses
alpm_list_t* alpm_pkg_get_licenses(alpm_pkg_t* pkg)
Returns the list of package licenses.
@param pkg a pointer to package
@return a pointer to an internal list of strings.
- alpm_pkg_get_makedepends
alpm_list_t* alpm_pkg_get_makedepends(alpm_pkg_t* pkg)
Returns a list of package make dependencies
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_md5sum
const(char)* alpm_pkg_get_md5sum(alpm_pkg_t* pkg)
Returns the package's MD5 checksum as a string.
The returned string is a sequence of 32 lowercase hexadecimal digits.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_name
const(char)* alpm_pkg_get_name(alpm_pkg_t* pkg)
Returns the package name.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_optdepends
alpm_list_t* alpm_pkg_get_optdepends(alpm_pkg_t* pkg)
Returns the list of package optional dependencies.
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_origin
alpm_pkgfrom_t alpm_pkg_get_origin(alpm_pkg_t* pkg)
Returns the origin of the package.
@return an alpm_pkgfrom_t constant, -1 on error
- alpm_pkg_get_packager
const(char)* alpm_pkg_get_packager(alpm_pkg_t* pkg)
Returns the packager's name.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_provides
alpm_list_t* alpm_pkg_get_provides(alpm_pkg_t* pkg)
Returns the list of packages provided by pkg.
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_reason
alpm_pkgreason_t alpm_pkg_get_reason(alpm_pkg_t* pkg)
Returns the package installation reason.
@param pkg a pointer to package
@return an enum member giving the install reason.
- alpm_pkg_get_replaces
alpm_list_t* alpm_pkg_get_replaces(alpm_pkg_t* pkg)
Returns the list of packages to be replaced by pkg.
@param pkg a pointer to package
@return a reference to an internal list of alpm_depend_t structures.
- alpm_pkg_get_sha256sum
const(char)* alpm_pkg_get_sha256sum(alpm_pkg_t* pkg)
Returns the package's SHA256 checksum as a string.
The returned string is a sequence of 64 lowercase hexadecimal digits.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_size
off_t alpm_pkg_get_size(alpm_pkg_t* pkg)
Returns the size of the package. This is only available for sync database
packages and package files, not those loaded from the local database.
@param pkg a pointer to package
@return the size of the package in bytes.
- alpm_pkg_get_url
const(char)* alpm_pkg_get_url(alpm_pkg_t* pkg)
Returns the package URL.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_get_validation
int alpm_pkg_get_validation(alpm_pkg_t* pkg)
Returns the method used to validate a package during install.
@param pkg a pointer to package
@return an enum member giving the validation method
- alpm_pkg_get_version
const(char)* alpm_pkg_get_version(alpm_pkg_t* pkg)
Returns the package version as a string.
This includes all available epoch, version, and pkgrel components. Use
alpm_pkg_vercmp() to compare version strings if necessary.
@param pkg a pointer to package
@return a reference to an internal string
- alpm_pkg_has_scriptlet
int alpm_pkg_has_scriptlet(alpm_pkg_t* pkg)
Returns whether the package has an install scriptlet.
@return 0 if FALSE, TRUE otherwise
- alpm_pkg_load
int alpm_pkg_load(alpm_handle_t* handle, const(char)* filename, int full, int level, alpm_pkg_t** pkg)
Create a package from a file.
If full is false, the archive is read only until all necessary
metadata is found. If it is true, the entire archive is read, which
serves as a verification of integrity and the filelist can be created.
The allocated structure should be freed using alpm_pkg_free().
@param handle the context handle
@param filename location of the package tarball
@param full whether to stop the load after metadata is read or continue
through the full archive
@param level what level of package signature checking to perform on the
package; note that this must be a '.sig' file type verification
@param pkg address of the package pointer
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_pkg_mtree_close
int alpm_pkg_mtree_close(const(alpm_pkg_t)* pkg, archive* archive)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_pkg_mtree_next
int alpm_pkg_mtree_next(const(alpm_pkg_t)* pkg, archive* archive, archive_entry** entry)
Read next entry from a package mtree file.
@param pkg the package that the mtree file is being read from
@param archive the archive structure reading from the mtree file
@param entry an archive_entry to store the entry header information
@return 0 if end of archive is reached, non-zero otherwise.
- alpm_pkg_mtree_open
archive* alpm_pkg_mtree_open(alpm_pkg_t* pkg)
Open a package mtree file for reading.
@param pkg the local package to read the changelog of
@return a archive structure for the package mtree file
- alpm_pkg_set_reason
int alpm_pkg_set_reason(alpm_pkg_t* pkg, alpm_pkgreason_t reason)
Set install reason for a package in the local database.
The provided package object must be from the local database or this method
will fail. The write to the local database is performed immediately.
@param pkg the package to update
@param reason the new install reason
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_pkg_should_ignore
int alpm_pkg_should_ignore(alpm_handle_t* handle, alpm_pkg_t* pkg)
Test if a package should be ignored.
Checks if the package is ignored via IgnorePkg, or if the package is
in a group ignored via IgnoreGroup.
@param handle the context handle
@param pkg the package to test
@return 1 if the package should be ignored, 0 otherwise
- alpm_pkg_vercmp
int alpm_pkg_vercmp(const(char)* a, const(char)* b)
Compare two version strings and determine which one is 'newer'.
- alpm_register_syncdb
alpm_db_t* alpm_register_syncdb(alpm_handle_t* handle, const(char)* treename, int level)
Register a sync database of packages.
@param handle the context handle
@param treename the name of the sync repository
@param level what level of signature checking to perform on the
database; note that this must be a '.sig' file type verification
@return an alpm_db_t* on success (the value), NULL on error
- alpm_release
int alpm_release(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_remove_pkg
int alpm_remove_pkg(alpm_handle_t* handle, alpm_pkg_t* pkg)
Add a package removal action to the transaction.
@param handle the context handle
@param pkg the package to uninstall
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_siglist_cleanup
int alpm_siglist_cleanup(alpm_siglist_t* siglist)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_strerror
const(char)* alpm_strerror(alpm_errno_t err)
Returns the string corresponding to an error number.
- alpm_sync_get_new_version
alpm_pkg_t* alpm_sync_get_new_version(alpm_pkg_t* pkg, alpm_list_t* dbs_sync)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_sync_sysupgrade
int alpm_sync_sysupgrade(alpm_handle_t* handle, int enable_downgrade)
Search for packages to upgrade and add them to the transaction.
@param handle the context handle
@param enable_downgrade allow downgrading of packages if the remote version is lower
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_trans_commit
int alpm_trans_commit(alpm_handle_t* handle, alpm_list_t** data)
Commit a transaction.
@param handle the context handle
@param data the address of an alpm_list where detailed description
of an error can be dumped (i.e. list of conflicting files)
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_trans_get_add
alpm_list_t* alpm_trans_get_add(alpm_handle_t* handle)
Returns a list of packages added by the transaction.
@param handle the context handle
@return a list of alpm_pkg_t structures
- alpm_trans_get_flags
int alpm_trans_get_flags(alpm_handle_t* handle)
Returns the bitfield of flags for the current transaction.
@param handle the context handle
@return the bitfield of transaction flags
- alpm_trans_get_remove
alpm_list_t* alpm_trans_get_remove(alpm_handle_t* handle)
Returns the list of packages removed by the transaction.
@param handle the context handle
@return a list of alpm_pkg_t structures
- alpm_trans_init
int alpm_trans_init(alpm_handle_t* handle, int flags)
Initialize the transaction.
@param handle the context handle
@param flags flags of the transaction (like nodeps, etc; see alpm_transflag_t)
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_trans_interrupt
int alpm_trans_interrupt(alpm_handle_t* handle)
Interrupt a transaction.
@param handle the context handle
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_trans_prepare
int alpm_trans_prepare(alpm_handle_t* handle, alpm_list_t** data)
Prepare a transaction.
@param handle the context handle
@param data the address of an alpm_list where a list
of alpm_depmissing_t objects is dumped (conflicting packages)
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_trans_release
int alpm_trans_release(alpm_handle_t* handle)
Release a transaction.
@param handle the context handle
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_unlock
int alpm_unlock(alpm_handle_t* handle)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- alpm_unregister_all_syncdbs
int alpm_unregister_all_syncdbs(alpm_handle_t* handle)
Unregister all package databases.
@param handle the context handle
@return 0 on success, -1 on error (pm_errno is set accordingly)
- alpm_version
const(char)* alpm_version()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.