#ifndef HEADER_CURL_TOOL_CB_PRG_H1#define HEADER_CURL_TOOL_CB_PRG_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/25#include "tool_setup.h"2627#define CURL_PROGRESS_STATS 0 /* default progress display */28#define CURL_PROGRESS_BAR 12930struct ProgressData {31int calls;32curl_off_t prev;33struct curltime prevtime;34int width;35FILE *out; /* where to write everything to */36curl_off_t initial_size;37unsigned int tick;38int bar;39int barmove;40};4142struct OperationConfig;4344void progressbarinit(struct ProgressData *bar,45struct OperationConfig *config);4647/*48** callback for CURLOPT_PROGRESSFUNCTION49*/5051int tool_progress_cb(void *clientp,52curl_off_t dltotal, curl_off_t dlnow,53curl_off_t ultotal, curl_off_t ulnow);5455#endif /* HEADER_CURL_TOOL_CB_PRG_H */565758