doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
progress.c File Reference
#include "setup.h"
#include <string.h>
#include <time.h>
#include <curl/curl.h>
#include "urldata.h"
#include "sendf.h"
#include "progress.h"
#include <curl/mprintf.h>

Go to the source code of this file.

Macros

#define _MPRINTF_REPLACE   /* use our functions only */
 
#define ONE_KILOBYTE   1024
 
#define ONE_MEGABYTE   (1024*1024)
 
#define ONE_GIGABYTE   (1024*1024*1024)
 

Functions

void Curl_pgrsDone (struct connectdata *conn)
 
void Curl_pgrsResetTimes (struct SessionHandle *data)
 
void Curl_pgrsTime (struct SessionHandle *data, timerid timer)
 
void Curl_pgrsStartNow (struct SessionHandle *data)
 
void Curl_pgrsSetDownloadCounter (struct SessionHandle *data, curl_off_t size)
 
void Curl_pgrsSetUploadCounter (struct SessionHandle *data, curl_off_t size)
 
void Curl_pgrsSetDownloadSize (struct SessionHandle *data, curl_off_t size)
 
void Curl_pgrsSetUploadSize (struct SessionHandle *data, curl_off_t size)
 
int Curl_pgrsUpdate (struct connectdata *conn)
 

Macro Definition Documentation

#define _MPRINTF_REPLACE   /* use our functions only */

Definition at line 42 of file progress.c.

#define ONE_GIGABYTE   (1024*1024*1024)
#define ONE_KILOBYTE   1024
#define ONE_MEGABYTE   (1024*1024)

Function Documentation

void Curl_pgrsDone ( struct connectdata conn)

Definition at line 105 of file progress.c.

void Curl_pgrsResetTimes ( struct SessionHandle data)

Definition at line 118 of file progress.c.

void Curl_pgrsSetDownloadCounter ( struct SessionHandle data,
curl_off_t  size 
)

Definition at line 170 of file progress.c.

void Curl_pgrsSetDownloadSize ( struct SessionHandle data,
curl_off_t  size 
)

Definition at line 180 of file progress.c.

void Curl_pgrsSetUploadCounter ( struct SessionHandle data,
curl_off_t  size 
)

Definition at line 175 of file progress.c.

void Curl_pgrsSetUploadSize ( struct SessionHandle data,
curl_off_t  size 
)

Definition at line 189 of file progress.c.

void Curl_pgrsStartNow ( struct SessionHandle data)

Definition at line 164 of file progress.c.

void Curl_pgrsTime ( struct SessionHandle data,
timerid  timer 
)

Definition at line 126 of file progress.c.

int Curl_pgrsUpdate ( struct connectdata conn)

Definition at line 206 of file progress.c.