ELinks 0.18.0
progress.h File Reference
#include "main/timer.h"
#include "util/time.h"
Include dependency graph for progress.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  progress

Macros

#define CURRENT_SPD_SEC   50 /* number of seconds */

Functions

struct progressinit_progress (off_t start)
void done_progress (struct progress *progress)
void update_progress (struct progress *progress, off_t loaded, off_t size, off_t pos)
void start_update_progress (struct progress *progress, void(*timer_func)(void *), void *timer_func_data)
int has_progress (struct progress *progress)

Macro Definition Documentation

◆ CURRENT_SPD_SEC

#define CURRENT_SPD_SEC   50 /* number of seconds */

Function Documentation

◆ done_progress()

void done_progress ( struct progress * progress)

◆ has_progress()

int has_progress ( struct progress * progress)

◆ init_progress()

struct progress * init_progress ( off_t start)

◆ start_update_progress()

void start_update_progress ( struct progress * progress,
void(* timer_func )(void *),
void * timer_func_data )

Unlike in install_timer(), timer_func need not erase the expired timer ID from progress->timer. update_progress() installs the timer with a wrapper function that takes care of erasing the timer ID.

◆ update_progress()

void update_progress ( struct progress * progress,
off_t loaded,
off_t size,
off_t pos )