libalpm
Arch Linux Package Manager Library
Defines | Functions
callback.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <wchar.h>
#include <limits.h>
#include <alpm.h>
#include "callback.h"
#include "util.h"
#include "conf.h"
Include dependency graph for callback.c:

Go to the source code of this file.

Defines

#define UPDATE_SPEED_MS   200

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 current)
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)

Define Documentation

#define UPDATE_SPEED_MS   200

Definition at line 47 of file callback.c.

Referenced by cb_dl_progress(), and cb_progress().


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  current 
)
void cb_question ( alpm_question_t  event,
void *  data1,
void *  data2,
void *  data3,
int *  response 
)