Skip to content
Snippets Groups Projects
Commit 10f95802 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added writeout stuff

parent 947a644d
No related branches found
No related tags found
No related merge requests found
......@@ -430,6 +430,9 @@ UrgError curl_urlget(UrgTag tag, ...)
case URGTAG_WRITEFUNCTION:
data->fwrite = (size_t (*)(char *, size_t, size_t, FILE *))param_func;
break;
case URGTAG_WRITEINFO:
data->writeinfo = (char *)param_obj;
break;
case URGTAG_READFUNCTION:
data->fread = (size_t (*)(char *, size_t, size_t, FILE *))param_func;
break;
......@@ -546,6 +549,12 @@ UrgError curl_urlget(UrgTag tag, ...)
else
res = URG_FAILED_INIT; /* failed */
if((URG_OK == res) && data->writeinfo) {
/* Time to output some info to stdout */
WriteOut(data);
}
/* total cleanup */
urlfree(data, TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment