aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-17 22:39:41 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-17 22:39:41 -0800
commite54e2b1a98abfdb75232a9b3218714ce34c9a34f (patch)
tree3476bf1c917a686677f538b0bcb2f753934bfbc0 /src/nng.c
parent6333c9cefb847231397128bb7b99f0055acd1632 (diff)
downloadnng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.tar.gz
nng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.tar.bz2
nng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.zip
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.
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c6
1 files changed, 6 insertions, 0 deletions
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