#ifndef HEADER_CURL_TOOL_EASYSRC_H1#define HEADER_CURL_TOOL_EASYSRC_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"26#ifndef CURL_DISABLE_LIBCURL_OPTION2728/* global variable declarations, for easy-interface source code generation */2930extern struct slist_wc *easysrc_decl; /* Variable declarations */31extern struct slist_wc *easysrc_data; /* Build slists, forms etc. */32extern struct slist_wc *easysrc_code; /* Setopt calls etc. */33extern struct slist_wc *easysrc_toohard; /* Unconvertible setopt */34extern struct slist_wc *easysrc_clean; /* Clean up (reverse order) */3536extern int easysrc_mime_count; /* Number of curl_mime variables */37extern int easysrc_slist_count; /* Number of curl_slist variables */3839extern CURLcode easysrc_init(void);40extern CURLcode easysrc_add(struct slist_wc **plist, const char *bupf);41extern CURLcode easysrc_addf(struct slist_wc **plist,42const char *fmt, ...) CURL_PRINTF(2, 3);43extern CURLcode easysrc_perform(void);44extern CURLcode easysrc_cleanup(void);4546void dumpeasysrc(struct GlobalConfig *config);4748#else /* CURL_DISABLE_LIBCURL_OPTION is defined */4950#define easysrc_init() CURLE_OK51#define easysrc_cleanup()52#define dumpeasysrc(x)53#define easysrc_perform() CURLE_OK5455#endif /* CURL_DISABLE_LIBCURL_OPTION */5657#endif /* HEADER_CURL_TOOL_EASYSRC_H */585960