From 6499dd847ca8889ea0aa4a2fe934bcfff9466e60 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 18 Nov 2024 20:36:59 -0800 Subject: Add new nni_url_parse_inline, and add more test cases for coverage. The inline parsing will be used internally to avoid some allocations. --- src/core/url.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/url.h') diff --git a/src/core/url.h b/src/core/url.h index f8a141ac..c0ca32a0 100644 --- a/src/core/url.h +++ b/src/core/url.h @@ -33,5 +33,6 @@ extern int nni_url_asprintf(char **, const nng_url *); extern int nni_url_asprintf_port(char **, const nng_url *, int); extern size_t nni_url_decode(uint8_t *, const char *, size_t); extern int nni_url_to_address(nng_sockaddr *, const nng_url *); +extern int nni_url_parse_inline(nng_url *, const char *); #endif // CORE_URL_H -- cgit v1.2.3-70-g09d2