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/nng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index f8a4d13f..dd8a98f1 100644 --- a/src/nng.c +++ b/src/nng.c @@ -2038,6 +2038,12 @@ nng_url_clone(nng_url **dstp, const nng_url *src) return (nni_url_clone(dstp, src)); } +int +nng_url_sprintf(char *buf, size_t bufsz, const nng_url *src) +{ + return (nni_url_sprintf(buf, bufsz, src)); +} + #define xstr(a) str(a) #define str(a) #a -- cgit v1.2.3-70-g09d2