aboutsummaryrefslogtreecommitdiff
path: root/src/core/url.h
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/core/url.h
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/core/url.h')
-rw-r--r--src/core/url.h3
1 files changed, 2 insertions, 1 deletions
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. <info@staysail.tech>
+// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// 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);