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. --- include/nng/nng.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 6c1eaafd..984f67d4 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1108,6 +1108,10 @@ NNG_DECL void nng_url_free(nng_url *); // nng_url_clone clones a URL structure. NNG_DECL int nng_url_clone(nng_url **, const nng_url *); +// nng_url_sprintf prints a URL to a string using semantics similar to +// snprintf. +NNG_DECL int nng_url_sprintf(char *, size_t, const nng_url *); + // nng_version returns the library version as a human readable string. NNG_DECL const char *nng_version(void); -- cgit v1.2.3-70-g09d2