00001 #ifndef HEADER_CURL_TOOL_EASYSRC_H 00002 #define HEADER_CURL_TOOL_EASYSRC_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 #include "tool_setup.h" 00025 #ifndef CURL_DISABLE_LIBCURL_OPTION 00026 00027 /* global variable declarations, for easy-interface source code generation */ 00028 00029 extern struct slist_wc *easysrc_decl; /* Variable declarations */ 00030 extern struct slist_wc *easysrc_data; /* Build slists, forms etc. */ 00031 extern struct slist_wc *easysrc_code; /* Setopt calls etc. */ 00032 extern struct slist_wc *easysrc_toohard; /* Unconvertible setopt */ 00033 extern struct slist_wc *easysrc_clean; /* Clean up (reverse order) */ 00034 00035 extern int easysrc_form_count; /* Number of curl_httppost variables */ 00036 extern int easysrc_slist_count; /* Number of curl_slist variables */ 00037 00038 extern CURLcode easysrc_init(void); 00039 extern CURLcode easysrc_add(struct slist_wc **plist, const char *bupf); 00040 extern CURLcode easysrc_addf(struct slist_wc **plist, 00041 const char *fmt, ...); 00042 extern CURLcode easysrc_perform(void); 00043 extern CURLcode easysrc_cleanup(void); 00044 00045 void dumpeasysrc(struct GlobalConfig *config); 00046 00047 #endif /* CURL_DISABLE_LIBCURL_OPTION */ 00048 00049 #endif /* HEADER_CURL_TOOL_EASYSRC_H */