doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
progress.h
Go to the documentation of this file.
1 #ifndef __PROGRESS_H
2 #define __PROGRESS_H
3 /***************************************************************************
4  * _ _ ____ _
5  * Project ___| | | | _ \| |
6  * / __| | | | |_) | |
7  * | (__| |_| | _ <| |___
8  * \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * This software is licensed as described in the file COPYING, which
13  * you should have received as part of this distribution. The terms
14  * are also available at http://curl.haxx.se/docs/copyright.html.
15  *
16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17  * copies of the Software, and permit persons to whom the Software is
18  * furnished to do so, under the terms of the COPYING file.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  * $Id: progress.h,v 1.20 2004/03/10 16:20:33 bagder Exp $
24  ***************************************************************************/
25 
26 #include "timeval.h"
27 
28 
29 typedef enum {
38  TIMER_LAST /* must be last */
39 } timerid;
40 
41 void Curl_pgrsDone(struct connectdata *);
47 int Curl_pgrsUpdate(struct connectdata *);
49 void Curl_pgrsTime(struct SessionHandle *data, timerid timer);
50 
51 
52 /* Don't show progress for sizes smaller than: */
53 #define LEAST_SIZE_PROGRESS BUFSIZE
54 
55 #define PROGRESS_DOWNLOAD (1<<0)
56 #define PROGRESS_UPLOAD (1<<1)
57 #define PROGRESS_DOWN_AND_UP (PROGRESS_UPLOAD | PROGRESS_DOWNLOAD)
58 
59 #define PGRS_SHOW_DL (1<<0)
60 #define PGRS_SHOW_UL (1<<1)
61 #define PGRS_DONE_DL (1<<2)
62 #define PGRS_DONE_UL (1<<3)
63 #define PGRS_HIDE (1<<4)
64 #define PGRS_UL_SIZE_KNOWN (1<<5)
65 #define PGRS_DL_SIZE_KNOWN (1<<6)
66 
67 #define PGRS_HEADERS_OUT (1<<7) /* set when the headers have been written */
68 
69 
70 #endif /* __PROGRESS_H */
void Curl_pgrsStartNow(struct SessionHandle *data)
Definition: progress.c:164
int Curl_pgrsUpdate(struct connectdata *)
Definition: progress.c:206
void Curl_pgrsSetDownloadCounter(struct SessionHandle *data, curl_off_t size)
Definition: progress.c:170
void Curl_pgrsSetDownloadSize(struct SessionHandle *data, curl_off_t size)
Definition: progress.c:180
off_t curl_off_t
Definition: curl.h:96
void Curl_pgrsDone(struct connectdata *)
Definition: progress.c:105
void Curl_pgrsSetUploadSize(struct SessionHandle *data, curl_off_t size)
Definition: progress.c:189
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:2853
void Curl_pgrsTime(struct SessionHandle *data, timerid timer)
Definition: progress.c:126
void Curl_pgrsResetTimes(struct SessionHandle *data)
Definition: progress.c:118
void Curl_pgrsSetUploadCounter(struct SessionHandle *data, curl_off_t size)
Definition: progress.c:175
GLsizeiptr size
Definition: glext.h:3112
timerid
Definition: progress.h:29