aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/nng/nng.h4
1 files changed, 4 insertions, 0 deletions
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);