#include "tool_setup.h"
#include "slist_wc.h"
#include "curlx.h"
#include "tool_cfgable.h"
#include "tool_easysrc.h"
#include "tool_msgs.h"
#include "memdebug.h"
Go to the source code of this file.
Defines | |
#define | CHKRET(v) do {CURLcode ret = (v); if(ret) return ret;} WHILE_FALSE |
#define | ENABLE_CURLX_PRINTF |
Functions | |
void | dumpeasysrc (struct GlobalConfig *config) |
CURLcode | easysrc_add (struct slist_wc **plist, const char *line) |
CURLcode | easysrc_addf (struct slist_wc **plist, const char *fmt,...) |
CURLcode | easysrc_cleanup (void) |
static void | easysrc_free (void) |
CURLcode | easysrc_init (void) |
CURLcode | easysrc_perform (void) |
Variables | |
struct slist_wc * | easysrc_clean = NULL |
struct slist_wc * | easysrc_code = NULL |
struct slist_wc * | easysrc_data = NULL |
struct slist_wc * | easysrc_decl = NULL |
int | easysrc_form_count = 0 |
int | easysrc_slist_count = 0 |
struct slist_wc * | easysrc_toohard = NULL |
static const char *const | srcend [] |
static const char *const | srchard [] |
static const char *const | srchead [] |
#define CHKRET | ( | v | ) | do {CURLcode ret = (v); if(ret) return ret;} WHILE_FALSE |
Definition at line 126 of file tool_easysrc.c.
#define ENABLE_CURLX_PRINTF |
Definition at line 28 of file tool_easysrc.c.
void dumpeasysrc | ( | struct GlobalConfig * | config | ) |
Definition at line 173 of file tool_easysrc.c.
CURLcode easysrc_add | ( | struct slist_wc ** | plist, |
const char * | line | ||
) |
Definition at line 95 of file tool_easysrc.c.
CURLcode easysrc_addf | ( | struct slist_wc ** | plist, |
const char * | fmt, | ||
... | |||
) |
Definition at line 108 of file tool_easysrc.c.
CURLcode easysrc_cleanup | ( | void | ) |
Definition at line 165 of file tool_easysrc.c.
static void easysrc_free | ( | void | ) | [static] |
Definition at line 80 of file tool_easysrc.c.
CURLcode easysrc_init | ( | void | ) |
Definition at line 128 of file tool_easysrc.c.
CURLcode easysrc_perform | ( | void | ) |
Definition at line 135 of file tool_easysrc.c.
struct slist_wc* easysrc_clean = NULL |
Definition at line 44 of file tool_easysrc.c.
struct slist_wc* easysrc_code = NULL |
Definition at line 42 of file tool_easysrc.c.
struct slist_wc* easysrc_data = NULL |
Definition at line 41 of file tool_easysrc.c.
struct slist_wc* easysrc_decl = NULL |
Definition at line 40 of file tool_easysrc.c.
int easysrc_form_count = 0 |
Definition at line 45 of file tool_easysrc.c.
int easysrc_slist_count = 0 |
Definition at line 46 of file tool_easysrc.c.
struct slist_wc* easysrc_toohard = NULL |
Definition at line 43 of file tool_easysrc.c.
const char* const srcend[] [static] |
{ "", " return (int)ret;", "}", "/**** End of sample code ****/", NULL }
Definition at line 71 of file tool_easysrc.c.
const char* const srchard[] [static] |
{ "/* Here is a list of options the curl code used that cannot get generated", " as source easily. You may select to either not use them or implement", " them yourself.", "", NULL }
Definition at line 64 of file tool_easysrc.c.
const char* const srchead[] [static] |
{ "/********* Sample code generated by the curl command line tool **********", " * All curl_easy_setopt() options are documented at:", " * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html", " ************************************************************************/", "#include <curl/curl.h>", "", "int main(int argc, char *argv[])", "{", " CURLcode ret;", " CURL *hnd;", NULL }
Definition at line 48 of file tool_easysrc.c.