summaryrefslogtreecommitdiff
path: root/src/tool_cb_wrt.h
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2015-03-30 13:56:30 +0200
committerKamil Dudka <kdudka@redhat.com>2015-04-08 09:43:08 +0200
commit261a0fedcf1545440190965311a1554d7695b6c0 (patch)
treefc1b18059e541956123dcc96b4fd3e46610d25db /src/tool_cb_wrt.h
parentf251417d85d232605ca86e9562a64500c67ccdee (diff)
downloadcurl-261a0fedcf1545440190965311a1554d7695b6c0.tar.gz
src/tool_operate: create output file on successful download
... of an empty file Bug: https://github.com/bagder/curl/issues/183
Diffstat (limited to 'src/tool_cb_wrt.h')
-rw-r--r--src/tool_cb_wrt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_cb_wrt.h b/src/tool_cb_wrt.h
index 380d8dd6a..ecbefa808 100644
--- a/src/tool_cb_wrt.h
+++ b/src/tool_cb_wrt.h
@@ -29,5 +29,8 @@
size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata);
+/* create a local file for writing, return TRUE on success */
+bool tool_create_output_file(struct OutStruct *outs);
+
#endif /* HEADER_CURL_TOOL_CB_WRT_H */