Function alpm_sys::alpm_option_set_questioncb[][src]

pub unsafe extern "C" fn alpm_option_set_questioncb(
    handle: *mut alpm_handle_t,
    cb: alpm_cb_question,
    ctx: *mut c_void
) -> c_int
Expand description

Sets the callback used for questions. @param handle the context handle @param cb the cb to use @param ctx user-provided context to pass to cb @return 0 on success, -1 on error (pm_errno is set accordingly)