libalpm
Arch Linux Package Manager Library
Functions
callback.h File Reference
#include <sys/types.h>
#include <alpm.h>
Include dependency graph for callback.h:
This graph shows which files directly or indirectly include this file:

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)

Function Documentation

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.

Here is the call graph for this function:

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 
)
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().

Here is the call graph for this function:

void cb_progress ( alpm_progress_t  event,
const char *  pkgname,
int  percent,
size_t  howmany,
size_t  remain 
)
void cb_question ( alpm_question_t  event,
void *  data1,
void *  data2,
void *  data3,
int *  response 
)