/*
 * by Dirk Meyer (dinoex)
 * Copyright (C) 2004-2021 Dirk Meyer
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the GNU General Public License.  More information is
 * available in the LICENSE file.
 *
 * If you received this file without documentation, it can be
 * downloaded from https://iroffer.net/
 *
 * SPDX-FileCopyrightText: 2004-2021 Dirk Meyer
 * SPDX-License-Identifier: GPL-2.0-only
 *
 * $Id: dinoex_curl.h,v 1.12 2021/09/19 10:10:12 cvs Exp $
 *
 */

#ifdef USE_CURL
void curl_startup(void);
void curl_shutdown(void);
void fetch_multi_fdset(fd_set *read_fd_set, fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd);
unsigned int fetch_cancel(unsigned int num);
void fetch_perform(void);
void start_fetch_url(const userinput *const u, const char *uploaddir);
void fetch_next(void);
void dinoex_dcl(const userinput *const u);
void dinoex_dcld(const userinput *const u);
unsigned int fetch_is_running(const char *file);
unsigned int fetch_running(void);

extern int fetch_started;
#endif /* USE_CURL */

/* End of File */
