From e54e2b1a98abfdb75232a9b3218714ce34c9a34f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 17 Nov 2024 22:39:41 -0800 Subject: More url work. Undocument rawurl, and stop using it stats and logs. Also expose nng_url_sprintf() for users who need it. This avoids some need to do dynamic memory on some things. Soon the entirety of nng_url will be allocation free in the usual case. --- src/core/url.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/url.h') diff --git a/src/core/url.h b/src/core/url.h index 71a093d0..f43d3db6 100644 --- a/src/core/url.h +++ b/src/core/url.h @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -17,6 +17,7 @@ extern int nni_url_parse(nni_url **, const char *path); extern void nni_url_free(nni_url *); extern int nni_url_clone(nni_url **, const nni_url *); extern uint16_t nni_url_default_port(const char *); +extern int nni_url_sprintf(char *, size_t, const nni_url *); extern int nni_url_asprintf(char **, const nni_url *); extern int nni_url_asprintf_port(char **, const nni_url *, int); extern size_t nni_url_decode(uint8_t *, const char *, size_t); -- cgit v1.2.3-70-g09d2