3
/*****************************************************************************
5
* Project ___| | | | _ \| |
7
* | (__| |_| | _ <| |___
8
* \___|\___/|_| \_\_____|
10
* Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
12
* In order to be useful for every potential user, curl and libcurl are
13
* dual-licensed under the MPL and the MIT/X-derivate licenses.
15
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
16
* copies of the Software, and permit persons to whom the Software is
17
* furnished to do so, under the terms of the MPL or the MIT/X-derivate
18
* licenses. You may pick one of these licenses.
20
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
* KIND, either express or implied.
23
* $Id: progress.h,v 1.14 2001/11/20 15:00:50 bagder Exp $
24
*****************************************************************************/
37
TIMER_LAST /* must be last */
40
void Curl_pgrsDone(struct connectdata *);
41
void Curl_pgrsStartNow(struct SessionHandle *data);
42
void Curl_pgrsSetDownloadSize(struct SessionHandle *data, double size);
43
void Curl_pgrsSetUploadSize(struct SessionHandle *data, double size);
44
void Curl_pgrsSetDownloadCounter(struct SessionHandle *data, double size);
45
void Curl_pgrsSetUploadCounter(struct SessionHandle *data, double size);
46
int Curl_pgrsUpdate(struct connectdata *);
47
void Curl_pgrsTime(struct SessionHandle *data, timerid timer);
50
/* Don't show progress for sizes smaller than: */
51
#define LEAST_SIZE_PROGRESS BUFSIZE
53
#define PROGRESS_DOWNLOAD (1<<0)
54
#define PROGRESS_UPLOAD (1<<1)
55
#define PROGRESS_DOWN_AND_UP (PROGRESS_UPLOAD | PROGRESS_DOWNLOAD)
57
#define PGRS_SHOW_DL (1<<0)
58
#define PGRS_SHOW_UL (1<<1)
59
#define PGRS_DONE_DL (1<<2)
60
#define PGRS_DONE_UL (1<<3)
61
#define PGRS_HIDE (1<<4)
62
#define PGRS_UL_SIZE_KNOWN (1<<5)
63
#define PGRS_DL_SIZE_KNOWN (1<<6)
65
#define PGRS_HEADERS_OUT (1<<7) /* set when the headers have been written */
68
#endif /* __PROGRESS_H */