aboutsummaryrefslogtreecommitdiff
path: root/lib/urlapi-int.h
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2018-12-11 15:02:24 +0100
committerDaniel Gustafsson <daniel@yesql.se>2018-12-11 15:02:24 +0100
commite1be2ecba485e49c740286b7bc431592507aa8f0 (patch)
treed7f5342e4609a8d39eae81df1bb6d2e709921a64 /lib/urlapi-int.h
parent63533cbde279ce91ed9e9c92d47b6297235d1d02 (diff)
tests: add urlapi unittest
This adds a new unittest intended to cover the internal functions in the urlapi code, starting with parse_port(). In order to avoid name collisions in debug builds, parse_port() is renamed Curl_parse_port() since it will be exported. Reviewed-by: Daniel Stenberg <daniel@haxx.se> Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
Diffstat (limited to 'lib/urlapi-int.h')
-rw-r--r--lib/urlapi-int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/urlapi-int.h b/lib/urlapi-int.h
index a57d2e22b..75a360542 100644
--- a/lib/urlapi-int.h
+++ b/lib/urlapi-int.h
@@ -30,4 +30,9 @@ bool Curl_is_absolute_url(const char *url, char *scheme, size_t buflen);
char *Curl_concat_url(const char *base, const char *relurl);
size_t Curl_strlen_url(const char *url, bool relative);
void Curl_strcpy_url(char *output, const char *url, bool relative);
+
+#ifdef DEBUGBUILD
+CURLUcode Curl_parse_port(struct Curl_URL *u, char *hostname);
+#endif
+
#endif /* HEADER_CURL_URLAPI_INT_H */