aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Fuller <jim@webcomposite.com>2018-07-13 15:17:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2018-09-05 14:30:48 +0200
commitb004a174ea5efb3d6bdce83949b6c1eab994930b (patch)
tree9ae3263324557d98fa7412ed4fda0f50b3a6cc89 /lib
parentc497472c8b519346fa82dd780f94454cf47886f0 (diff)
tests: add unit tests for url.c
Approved-by: Daniel Gustafsson Closes #2937
Diffstat (limited to 'lib')
-rw-r--r--lib/url.h7
-rw-r--r--lib/urldata.h3
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/url.h b/lib/url.h
index ef3ebf03e..a914f56e6 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -34,7 +34,7 @@
CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn);
CURLcode Curl_open(struct Curl_easy **curl);
CURLcode Curl_init_userdefined(struct Curl_easy *data);
-CURLcode Curl_dupset(struct Curl_easy * dst, struct Curl_easy * src);
+
void Curl_freeset(struct Curl_easy * data);
CURLcode Curl_close(struct Curl_easy *data); /* opposite of curl_open() */
CURLcode Curl_connect(struct Curl_easy *, struct connectdata **,
@@ -57,9 +57,7 @@ int Curl_doing_getsock(struct connectdata *conn,
CURLcode Curl_parse_login_details(const char *login, const size_t len,
char **userptr, char **passwdptr,
char **optionsptr);
-bool Curl_isPipeliningEnabled(const struct Curl_easy *handle);
-CURLcode Curl_addHandleToPipeline(struct Curl_easy *handle,
- struct curl_llist *pipeline);
+
int Curl_removeHandleFromPipeline(struct Curl_easy *handle,
struct curl_llist *pipeline);
/* remove the specified connection from all (possible) pipelines and related
@@ -67,7 +65,6 @@ int Curl_removeHandleFromPipeline(struct Curl_easy *handle,
void Curl_getoff_all_pipelines(struct Curl_easy *data,
struct connectdata *conn);
-void Curl_close_connections(struct Curl_easy *data);
#define CURL_DEFAULT_PROXY_PORT 1080 /* default proxy port unless specified */
#define CURL_DEFAULT_HTTPS_PROXY_PORT 443 /* default https proxy port unless
diff --git a/lib/urldata.h b/lib/urldata.h
index 67db3b2fc..add77e09f 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1446,8 +1446,7 @@ enum dupstring {
STRING_LASTZEROTERMINATED,
- /* -- below this are pointers to binary data that cannot be strdup'ed.
- Each such pointer must be added manually to Curl_dupset() --- */
+ /* -- below this are pointers to binary data that cannot be strdup'ed. --- */
STRING_COPYPOSTFIELDS, /* if POST, set the fields' values here */