From f508f30fb6c0d8b6f4e2058256e80c97bfda3a7b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 24 Jul 2004 21:31:01 +0000 Subject: curl_easy_reset() added. Need testing and docs. I also think we should make the initial setting up the struct should use this single function to avoid having the initialisation code at two places. --- include/curl/easy.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/curl/easy.h b/include/curl/easy.h index ba51fc3bc..f09080768 100644 --- a/include/curl/easy.h +++ b/include/curl/easy.h @@ -1,10 +1,10 @@ #ifndef __CURL_EASY_H #define __CURL_EASY_H /*************************************************************************** - * _ _ ____ _ - * Project ___| | | | _ \| | - * / __| | | | |_) | | - * | (__| |_| | _ <| |___ + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2004, Daniel Stenberg, , et al. @@ -12,7 +12,7 @@ * 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 http://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. @@ -61,6 +61,19 @@ CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); */ CURL* curl_easy_duphandle(CURL *curl); +/* + * NAME curl_easy_reset() + * + * DESCRIPTION + * + * Re-initializes a CURL handle to the default values. This puts back the + * handle to the same state as it was in when it was just created. + * + * It does keep: live connections, the Session ID cache, the DNS cache and the + * cookies. + */ +CURL* curl_easy_duphandle(CURL *curl); + #ifdef __cplusplus } #endif -- cgit v1.2.3