38 (h)->eventcb((h)->eventcb_ctx, (alpm_event_t *) (e)); \
41#define QUESTION(h, q) \
43 if((h)->questioncb) { \
44 (h)->questioncb((h)->questioncb_ctx, (alpm_question_t *) (q)); \
47#define PROGRESS(h, e, p, per, n, r) \
49 if((h)->progresscb) { \
50 (h)->progresscb((h)->progresscb_ctx, e, p, per, n, r); \
54struct _alpm_handle_t {
67 unsigned short disable_dl_timeout;
68 unsigned short disable_sandbox;
69 unsigned int parallel_downloads;
113 int localfilesiglevel;
115 int remotefilesiglevel;
125alpm_handle_t *_alpm_handle_new(
void);
126void _alpm_handle_free(alpm_handle_t *handle);
128int _alpm_handle_lock(alpm_handle_t *handle);
129int _alpm_handle_unlock(alpm_handle_t *handle);
131alpm_errno_t _alpm_set_directory_option(
const char *value,
132 char **storage,
int must_exist);
void(* alpm_cb_question)(void *ctx, alpm_question_t *question)
Question callback.
Definition alpm.h:1119
int(* alpm_cb_fetch)(void *ctx, const char *url, const char *localpath, int force)
A callback for downloading files.
Definition alpm.h:1229
void(* alpm_cb_event)(void *ctx, alpm_event_t *event)
Event callback.
Definition alpm.h:972
void(* alpm_cb_progress)(void *ctx, alpm_progress_t progress, const char *pkg, int percent, size_t howmany, size_t current)
Progress callback.
Definition alpm.h:1158
void(* alpm_cb_download)(void *ctx, const char *filename, alpm_download_event_type_t event, void *data)
Type of download progress callbacks.
Definition alpm.h:1217
alpm_errno_t
libalpm's error type
Definition alpm.h:205
A doubly linked list.
Definition alpm_list.h:51
void(* alpm_cb_log)(void *ctx, alpm_loglevel_t level, const char *fmt, va_list args)
The callback type for logging.
Definition alpm.h:1516