libalpm
Arch Linux Package Manager Library
|
Go to the source code of this file.
Functions | |
void | cb_event (alpm_event_t event, void *data1, void *data2) |
void | cb_question (alpm_question_t event, void *data1, void *data2, void *data3, int *response) |
void | cb_progress (alpm_progress_t event, const char *pkgname, int percent, size_t howmany, size_t remain) |
void | cb_dl_total (off_t total) |
void | cb_dl_progress (const char *filename, off_t file_xfered, off_t file_total) |
void | cb_log (alpm_loglevel_t level, const char *fmt, va_list args) |
void cb_dl_progress | ( | const char * | filename, |
off_t | file_xfered, | ||
off_t | file_total | ||
) |
Definition at line 526 of file callback.c.
References _, config, getcols(), humanize_size(), __config_t::noprogressbar, __config_t::totaldownload, and UPDATE_SPEED_MS.
void cb_dl_total | ( | off_t | total | ) |
Definition at line 515 of file callback.c.
void cb_event | ( | alpm_event_t | event, |
void * | data1, | ||
void * | data2 | ||
) |
Definition at line 153 of file callback.c.
References _, ALPM_EVENT_ADD_DONE, ALPM_EVENT_ADD_START, ALPM_EVENT_CHECKDEPS_DONE, ALPM_EVENT_CHECKDEPS_START, ALPM_EVENT_DELTA_INTEGRITY_DONE, ALPM_EVENT_DELTA_INTEGRITY_START, ALPM_EVENT_DELTA_PATCH_DONE, ALPM_EVENT_DELTA_PATCH_FAILED, ALPM_EVENT_DELTA_PATCH_START, ALPM_EVENT_DELTA_PATCHES_DONE, ALPM_EVENT_DELTA_PATCHES_START, ALPM_EVENT_DISKSPACE_DONE, ALPM_EVENT_DISKSPACE_START, ALPM_EVENT_FILECONFLICTS_DONE, ALPM_EVENT_FILECONFLICTS_START, ALPM_EVENT_INTEGRITY_DONE, ALPM_EVENT_INTEGRITY_START, ALPM_EVENT_INTERCONFLICTS_DONE, ALPM_EVENT_INTERCONFLICTS_START, ALPM_EVENT_LOAD_DONE, ALPM_EVENT_LOAD_START, ALPM_EVENT_REMOVE_DONE, ALPM_EVENT_REMOVE_START, ALPM_EVENT_RESOLVEDEPS_DONE, ALPM_EVENT_RESOLVEDEPS_START, ALPM_EVENT_RETRIEVE_START, ALPM_EVENT_SCRIPTLET_INFO, ALPM_EVENT_UPGRADE_DONE, ALPM_EVENT_UPGRADE_START, alpm_logaction(), alpm_pkg_get_name(), alpm_pkg_get_version(), config, display_new_optdepends(), display_optdepends(), __config_t::handle, __config_t::noprogressbar, and __config_t::print.
void cb_log | ( | alpm_loglevel_t | level, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 742 of file callback.c.
References alpm_list_add(), pm_vasprintf(), and pm_vfprintf().
void cb_progress | ( | alpm_progress_t | event, |
const char * | pkgname, | ||
int | percent, | ||
size_t | howmany, | ||
size_t | remain | ||
) |
Definition at line 373 of file callback.c.
References _, ALPM_PROGRESS_ADD_START, ALPM_PROGRESS_CONFLICTS_START, ALPM_PROGRESS_DISKSPACE_START, ALPM_PROGRESS_INTEGRITY_START, ALPM_PROGRESS_LOAD_START, ALPM_PROGRESS_REMOVE_START, ALPM_PROGRESS_UPGRADE_START, config, __alpm_list_t::data, FREELIST, getcols(), __alpm_list_t::next, __config_t::noprogressbar, and UPDATE_SPEED_MS.
void cb_question | ( | alpm_question_t | event, |
void * | data1, | ||
void * | data2, | ||
void * | data3, | ||
int * | response | ||
) |
Definition at line 260 of file callback.c.
References _, _n, alpm_dep_compute_string(), alpm_list_add(), alpm_list_count(), alpm_list_free(), alpm_pkg_get_name(), alpm_pkg_get_version(), ALPM_QUESTION_CONFLICT_PKG, ALPM_QUESTION_CORRUPTED_PKG, ALPM_QUESTION_IMPORT_KEY, ALPM_QUESTION_INSTALL_IGNOREPKG, ALPM_QUESTION_LOCAL_NEWER, ALPM_QUESTION_REMOVE_PKGS, ALPM_QUESTION_REPLACE_PKG, ALPM_QUESTION_SELECT_PROVIDER, alpm_strerror(), __config_t::ask, config, _alpm_pgpkey_t::created, _alpm_pgpkey_t::fingerprint, _alpm_pgpkey_t::length, list_display(), __alpm_list_t::next, __config_t::noask, noyes(), __config_t::op_s_downloadonly, __config_t::print, _alpm_pgpkey_t::pubkey_algo, _alpm_pgpkey_t::revoked, select_display(), select_question(), _alpm_pgpkey_t::uid, and yesno().