summaryrefslogtreecommitdiff
path: root/lib/rename.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-02-17 22:55:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-18 07:49:15 +0100
commit330f133224af18c65b9325d9b6502e07b4f09f6b (patch)
tree7e68b7bbfb84fc9b1cb7f280bbe142cc1cf1592c /lib/rename.h
parentb834890a3fa3f525cd8ef4e99554cdb4558d7e1b (diff)
downloadcurl-330f133224af18c65b9325d9b6502e07b4f09f6b.tar.gz
rename: a new file for Curl_rename()
And make the cookie save function use it.
Diffstat (limited to 'lib/rename.h')
-rw-r--r--lib/rename.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/rename.h b/lib/rename.h
new file mode 100644
index 000000000..d7442c844
--- /dev/null
+++ b/lib/rename.h
@@ -0,0 +1,27 @@
+#ifndef HEADER_CURL_RENAME_H
+#define HEADER_CURL_RENAME_H
+/***************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at https://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+int Curl_rename(const char *oldpath, const char *newpath);
+
+#endif /* HEADER_CURL_RENAME_H */