libalpm_cb(3) Library Functions Manual libalpm_cb(3) libalpm_cb - - libalpm alpm_event_any_t . alpm_event_package_operation_t . alpm_event_optdep_removal_t . alpm_event_scriptlet_info_t . alpm_event_database_missing_t . alpm_event_pkgdownload_t . alpm_event_pacnew_created_t pacnew. alpm_event_pacsave_created_t pacsave. alpm_event_hook_t / . alpm_event_hook_run_t / . alpm_event_pkg_retrieve_t . alpm_event_t . alpm_question_any_t . alpm_question_install_ignorepkg_t ignorepkg alpm_question_replace_t alpm_question_conflict_t alpm_question_corrupted_t alpm_question_remove_pkgs_t alpm_question_select_provider_t . alpm_question_import_key_t alpm_question_t . alpm_download_event_init_t . alpm_download_event_progress_t . alpm_download_event_retry_t . alpm_download_event_completed_t . Typedefs typedef void(* alpm_cb_event) (void *ctx, alpm_event_t *event) . typedef void(* alpm_cb_question) (void *ctx, alpm_question_t *question) . typedef void(* alpm_cb_progress) (void *ctx, alpm_progress_t progress, const char *pkg, int percent, size_t howmany, size_t current) . typedef void(* alpm_cb_download) (void *ctx, const char *filename, alpm_download_event_type_t event, void *data) . typedef int(* alpm_cb_fetch) (void *ctx, const char *url, const char *localpath, int force) . enum alpm_event_type_t { ALPM_EVENT_CHECKDEPS_START = 1, ALPM_EVENT_CHECKDEPS_DONE, ALPM_EVENT_FILECONFLICTS_START, ALPM_EVENT_FILECONFLICTS_DONE, ALPM_EVENT_RESOLVEDEPS_START, ALPM_EVENT_RESOLVEDEPS_DONE, ALPM_EVENT_INTERCONFLICTS_START, ALPM_EVENT_INTERCONFLICTS_DONE, ALPM_EVENT_TRANSACTION_START, ALPM_EVENT_TRANSACTION_DONE, ALPM_EVENT_PACKAGE_OPERATION_START, ALPM_EVENT_PACKAGE_OPERATION_DONE, ALPM_EVENT_INTEGRITY_START, ALPM_EVENT_INTEGRITY_DONE, ALPM_EVENT_LOAD_START, ALPM_EVENT_LOAD_DONE, ALPM_EVENT_SCRIPTLET_INFO, ALPM_EVENT_DB_RETRIEVE_START, ALPM_EVENT_DB_RETRIEVE_DONE, ALPM_EVENT_DB_RETRIEVE_FAILED, ALPM_EVENT_PKG_RETRIEVE_START, ALPM_EVENT_PKG_RETRIEVE_DONE, ALPM_EVENT_PKG_RETRIEVE_FAILED, ALPM_EVENT_DISKSPACE_START, ALPM_EVENT_DISKSPACE_DONE, ALPM_EVENT_OPTDEP_REMOVAL, ALPM_EVENT_DATABASE_MISSING, ALPM_EVENT_KEYRING_START, ALPM_EVENT_KEYRING_DONE, ALPM_EVENT_KEY_DOWNLOAD_START, ALPM_EVENT_KEY_DOWNLOAD_DONE, ALPM_EVENT_PACNEW_CREATED, ALPM_EVENT_PACSAVE_CREATED, ALPM_EVENT_HOOK_START, ALPM_EVENT_HOOK_DONE, ALPM_EVENT_HOOK_RUN_START, ALPM_EVENT_HOOK_RUN_DONE } . enum alpm_package_operation_t { ALPM_PACKAGE_INSTALL = 1, ALPM_PACKAGE_UPGRADE, ALPM_PACKAGE_REINSTALL, ALPM_PACKAGE_DOWNGRADE, ALPM_PACKAGE_REMOVE } . enum alpm_hook_when_t { ALPM_HOOK_PRE_TRANSACTION = 1, ALPM_HOOK_POST_TRANSACTION } . enum alpm_question_type_t { ALPM_QUESTION_INSTALL_IGNOREPKG = (1 << 0), ALPM_QUESTION_REPLACE_PKG = (1 << 1), ALPM_QUESTION_CONFLICT_PKG = (1 << 2), ALPM_QUESTION_CORRUPTED_PKG = (1 << 3), ALPM_QUESTION_REMOVE_PKGS = (1 << 4), ALPM_QUESTION_SELECT_PROVIDER = (1 << 5), ALPM_QUESTION_IMPORT_KEY = (1 << 6) } . enum alpm_progress_t { ALPM_PROGRESS_ADD_START, ALPM_PROGRESS_UPGRADE_START, ALPM_PROGRESS_DOWNGRADE_START, ALPM_PROGRESS_REINSTALL_START, ALPM_PROGRESS_REMOVE_START, ALPM_PROGRESS_CONFLICTS_START, ALPM_PROGRESS_DISKSPACE_START, ALPM_PROGRESS_INTEGRITY_START, ALPM_PROGRESS_LOAD_START, ALPM_PROGRESS_KEYRING_START } . enum alpm_download_event_type_t { ALPM_DOWNLOAD_INIT, ALPM_DOWNLOAD_PROGRESS, ALPM_DOWNLOAD_RETRY, ALPM_DOWNLOAD_COMPLETED } . libalpm struct alpm_event_any_t . : alpm_event_type_t type . struct alpm_event_package_operation_t . : alpm_pkg_t * newpkg . alpm_pkg_t * oldpkg . alpm_package_operation_t operation . alpm_event_type_t type . alpm_event_optdep_removal_t . : alpm_depend_t * optdep . alpm_pkg_t * pkg . alpm_event_type_t type . alpm_event_scriptlet_info_t . : const char * line . alpm_event_type_t type . alpm_event_database_missing_t . : const char * dbname . alpm_event_type_t type . alpm_event_pkgdownload_t . : const char * file . alpm_event_type_t type . alpm_event_pacnew_created_t pacnew. : const char * file .pacnew. int from_noupgrade NoUpgrade . alpm_pkg_t * newpkg . alpm_pkg_t * oldpkg . alpm_event_type_t type . alpm_event_pacsave_created_t pacsave. : const char * file .pacsave. alpm_pkg_t * oldpkg . alpm_event_type_t type . alpm_event_hook_t / . : alpm_event_type_t type . alpm_hook_when_t when . alpm_event_hook_run_t / . : const char * desc . const char * name . size_t position size_t total alpm_event_type_t type . struct alpm_event_pkg_retrieve_t . : size_t num . off_t total_size . alpm_event_type_t type . union alpm_event_t . ( ). . : alpm_event_any_t any . . alpm_event_database_missing_t database_missing . alpm_event_hook_t hook / . alpm_event_hook_run_t hook_run . alpm_event_optdep_removal_t optdep_removal . alpm_event_package_operation_t package_operation . alpm_event_pacnew_created_t pacnew_created pacnew. alpm_event_pacsave_created_t pacsave_created pacsave. alpm_event_pkg_retrieve_t pkg_retrieve . alpm_event_pkgdownload_t pkgdownload . alpm_event_scriptlet_info_t scriptlet_info . alpm_event_type_t type . alpm_question_any_t . : int answer . alpm_question_type_t type . alpm_question_install_ignorepkg_t ignorepkg : int install : . alpm_pkg_t * pkg . alpm_question_type_t type . alpm_question_replace_t : alpm_db_t * newdb . alpm_pkg_t * newpkg . alpm_pkg_t * oldpkg . int replace : oldpkg newpkg . alpm_question_type_t type . alpm_question_conflict_t : alpm_conflict_t * conflict . int remove : conflict->package2 . alpm_question_type_t type . alpm_question_corrupted_t : const char * filepath . alpm_errno_t reason . int remove : filepath . alpm_question_type_t type . alpm_question_remove_pkgs_t : alpm_list_t * alpm_pkg_t* . int : . alpm_question_type_t type . struct alpm_question_select_provider_t . : alpm_depend_t * . alpm_list_t * alpm_pkg_t* . alpm_question_type_t type . int _ : ( ). struct alpm_question_import_key_t : const char * . int : . alpm_question_type_t type . const char * uid . union alpm_question_t . ( ). . : alpm_question_any_t . . alpm_question_conflict_t alpm_question_corrupted_t alpm_question_import_key_t _ alpm_question_install_ignorepkg_t __ _ alpm_question_remove_pkgs_t _ alpm_question_replace_t alpm_question_select_provider_t _ . alpm_question_type_t . . alpm_download_event_init_t . : int alpm_download_event_progress_t . : off_t . off_t . alpm_download_event_retry_t . : int . alpm_download_event_completed_t . : int : 0 - 1 - -1 - off_t . Typedef typedef void(* alpm_cb_download) (void *ctx, const char *filename, alpm_download_event_type_t event, void *data) . ctx filename event data alpm_download_event_*_t typedef void(* alpm_cb_event) (void *ctx, alpm_event_t *event) . ctx event typedef int(* alpm_cb_fetch) (void *ctx, const char *url, const char *localpath, int force) . ctx url localpath force 0 1 -1 . typedef void(* alpm_cb_progress) (void *ctx, alpm_progress_t progress, const char *pkg, int percent, size_t howmany, size_t current) . . . ctx progress pkg percent howmany current typedef void(* alpm_cb_question) (void *ctx, alpm_question_t *question) . ctx question . enum alpm_download_event_type_t . ALPM . Enumerator ALPM_DOWNLOAD_INIT . ALPM_DOWNLOAD_PROGRESS . ALPM_DOWNLOAD_RETRY . ALPM_DOWNLOAD_COMPLETED . alpm_event_type_t . Enumerator ALPM_EVENT_CHECKDEPS_START . ALPM_EVENT_CHECKDEPS_DONE . ALPM_EVENT_FILECONFLICTS_START . ALPM_EVENT_FILECONFLICTS_DONE . ALPM_EVENT_RESOLVEDEPS_START . ALPM_EVENT_RESOLVEDEPS_DONE . ALPM_EVENT_INTERCONFLICTS_START . ALPM_EVENT_INTERCONFLICTS_DONE . ALPM_EVENT_TRANSACTION_START . ALPM_EVENT_TRANSACTION_DONE . ALPM_EVENT_PACKAGE_OPERATION_START /// / alpm_event_package_operation_t . ALPM_EVENT_PACKAGE_OPERATION_DONE /// / alpm_event_package_operation_t . ALPM_EVENT_INTEGRITY_START . ALPM_EVENT_INTEGRITY_DONE . ALPM_EVENT_LOAD_START . ALPM_EVENT_LOAD_DONE . ALPM_EVENT_SCRIPTLET_INFO alpm_event_scriptlet_info_t . ALPM_EVENT_DB_RETRIEVE_START . ALPM_EVENT_DB_RETRIEVE_DONE . ALPM_EVENT_DB_RETRIEVE_FAILED . ALPM_EVENT_PKG_RETRIEVE_START . ALPM_EVENT_PKG_RETRIEVE_DONE . ALPM_EVENT_PKG_RETRIEVE_FAILED . ALPM_EVENT_DISKSPACE_START . ALPM_EVENT_DISKSPACE_DONE . ALPM_EVENT_OPTDEP_REMOVAL alpm_event_optdep_removal_t . ALPM_EVENT_DATABASE_MISSING alpm_event_database_missing_t . ALPM_EVENT_KEYRING_START . ALPM_EVENT_KEYRING_DONE . ALPM_EVENT_KEY_DOWNLOAD_START . ALPM_EVENT_KEY_DOWNLOAD_DONE . ALPM_EVENT_PACNEW_CREATED .pacnew alpm_event_pacnew_created_t . ALPM_EVENT_PACSAVE_CREATED .pacsave alpm_event_pacsave_created_t . ALPM_EVENT_HOOK_START . ALPM_EVENT_HOOK_DONE . ALPM_EVENT_HOOK_RUN_START . ALPM_EVENT_HOOK_RUN_DONE . enum alpm_hook_when_t . alpm_package_operation_t . Enumerator ALPM_PACKAGE_INSTALL ( ) . ( ) ALPM_PACKAGE_UPGRADE ( ) . ALPM_PACKAGE_REINSTALL ( ) . ALPM_PACKAGE_DOWNGRADE ( ) . ALPM_PACKAGE_REMOVE ( ) ( ). alpm_progress_t . Enumerator ALPM_PROGRESS_ADD_START . ALPM_PROGRESS_UPGRADE_START . ALPM_PROGRESS_DOWNGRADE_START . ALPM_PROGRESS_REINSTALL_START . ALPM_PROGRESS_REMOVE_START . ALPM_PROGRESS_CONFLICTS_START . ALPM_PROGRESS_DISKSPACE_START . ALPM_PROGRESS_INTEGRITY_START . ALPM_PROGRESS_LOAD_START . ALPM_PROGRESS_KEYRING_START . alpm_question_type_t . . Enumerator ALPM_QUESTION_INSTALL_IGNOREPKG ignorepkg ALPM_QUESTION_REPLACE_PKG ALPM_QUESTION_CONFLICT_PKG ALPM_QUESTION_CORRUPTED_PKG ALPM_QUESTION_REMOVE_PKGS ALPM_QUESTION_SELECT_PROVIDER . ___ Doxygen libalpm . 3 . . : . libalpm libalpm_cb(3)