doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Enumerations | Functions
progress.h File Reference
#include "timeval.h"

Go to the source code of this file.

Macros

#define LEAST_SIZE_PROGRESS   BUFSIZE
 
#define PROGRESS_DOWNLOAD   (1<<0)
 
#define PROGRESS_UPLOAD   (1<<1)
 
#define PROGRESS_DOWN_AND_UP   (PROGRESS_UPLOAD | PROGRESS_DOWNLOAD)
 
#define PGRS_SHOW_DL   (1<<0)
 
#define PGRS_SHOW_UL   (1<<1)
 
#define PGRS_DONE_DL   (1<<2)
 
#define PGRS_DONE_UL   (1<<3)
 
#define PGRS_HIDE   (1<<4)
 
#define PGRS_UL_SIZE_KNOWN   (1<<5)
 
#define PGRS_DL_SIZE_KNOWN   (1<<6)
 
#define PGRS_HEADERS_OUT   (1<<7) /* set when the headers have been written */
 

Enumerations

enum  timerid {
  TIMER_NONE, TIMER_NAMELOOKUP, TIMER_CONNECT, TIMER_PRETRANSFER,
  TIMER_STARTTRANSFER, TIMER_POSTRANSFER, TIMER_STARTSINGLE, TIMER_REDIRECT,
  TIMER_LAST
}
 

Functions

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

Macro Definition Documentation

#define LEAST_SIZE_PROGRESS   BUFSIZE

Definition at line 53 of file progress.h.

#define PGRS_DL_SIZE_KNOWN   (1<<6)

Definition at line 65 of file progress.h.

#define PGRS_DONE_DL   (1<<2)

Definition at line 61 of file progress.h.

#define PGRS_DONE_UL   (1<<3)

Definition at line 62 of file progress.h.

#define PGRS_HEADERS_OUT   (1<<7) /* set when the headers have been written */

Definition at line 67 of file progress.h.

#define PGRS_HIDE   (1<<4)

Definition at line 63 of file progress.h.

#define PGRS_SHOW_DL   (1<<0)

Definition at line 59 of file progress.h.

#define PGRS_SHOW_UL   (1<<1)

Definition at line 60 of file progress.h.

#define PGRS_UL_SIZE_KNOWN   (1<<5)

Definition at line 64 of file progress.h.

#define PROGRESS_DOWN_AND_UP   (PROGRESS_UPLOAD | PROGRESS_DOWNLOAD)

Definition at line 57 of file progress.h.

#define PROGRESS_DOWNLOAD   (1<<0)

Definition at line 55 of file progress.h.

#define PROGRESS_UPLOAD   (1<<1)

Definition at line 56 of file progress.h.

Enumeration Type Documentation

enum timerid
Enumerator
TIMER_NONE 
TIMER_NAMELOOKUP 
TIMER_CONNECT 
TIMER_PRETRANSFER 
TIMER_STARTTRANSFER 
TIMER_POSTRANSFER 
TIMER_STARTSINGLE 
TIMER_REDIRECT 
TIMER_LAST 

Definition at line 29 of file progress.h.

Function Documentation

void Curl_pgrsDone ( struct connectdata )

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 )

Definition at line 206 of file progress.c.