diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-18 20:36:59 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-18 20:38:27 -0800 |
| commit | 6499dd847ca8889ea0aa4a2fe934bcfff9466e60 (patch) | |
| tree | c803365ce80f0174e6c85a6c8ae12a284d73de6a /src/core/url.h | |
| parent | 600f81148be4d08b6b1c308165b3eff1c30ac216 (diff) | |
| download | nng-6499dd847ca8889ea0aa4a2fe934bcfff9466e60.tar.gz nng-6499dd847ca8889ea0aa4a2fe934bcfff9466e60.tar.bz2 nng-6499dd847ca8889ea0aa4a2fe934bcfff9466e60.zip | |
Add new nni_url_parse_inline, and add more test cases for coverage.
The inline parsing will be used internally to avoid some allocations.
Diffstat (limited to 'src/core/url.h')
| -rw-r--r-- | src/core/url.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
