new
[libcurl.git] / lib / progress.h
blob7701533d7926d5528f3f810b762c5fc4a674fd25
1 #ifndef __PROGRESS_H
2 #define __PROGRESS_H
3 /*****************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
17 * License for the specific language governing rights and limitations
18 * under the License.
20 * The Original Code is Curl.
22 * The Initial Developer of the Original Code is Daniel Stenberg.
24 * Portions created by the Initial Developer are Copyright (C) 1998.
25 * All Rights Reserved.
27 * ------------------------------------------------------------
28 * Main author:
29 * - Daniel Stenberg <Daniel.Stenberg@haxx.nu>
31 * http://curl.haxx.nu
33 * $Source: /cvsroot/curl/curl/lib/progress.h,v $
34 * $Revision: 1.1.1.1 $
35 * $Date: 1999-12-29 14:21:35 $
36 * $Author: bagder $
37 * $State: Exp $
38 * $Locker: $
40 * ------------------------------------------------------------
41 ****************************************************************************/
43 #include "timeval.h"
45 void ProgressInit(struct UrlData *data, int max);
46 void ProgressShow(struct UrlData *data,
47 int point, struct timeval start, struct timeval now, bool force);
48 void ProgressEnd(struct UrlData *data);
49 void ProgressMode(int mode);
51 /* Don't show progress for sizes smaller than: */
52 #define LEAST_SIZE_PROGRESS BUFSIZE
54 #endif /* __PROGRESS_H */