From dd4695f9492b4f30978e9043d7d6925bfe15a715 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 18 Nov 2024 18:49:01 -0800 Subject: Merge internal and external URL APIs. No need for the separation of nni_url and nng_url. --- src/core/url.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/core/url.h') diff --git a/src/core/url.h b/src/core/url.h index f43d3db6..2eb3ed46 100644 --- a/src/core/url.h +++ b/src/core/url.h @@ -13,14 +13,10 @@ #include "core/defs.h" -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 int nni_url_asprintf(char **, const nng_url *); +extern int nni_url_asprintf_port(char **, const nng_url *, int); extern size_t nni_url_decode(uint8_t *, const char *, size_t); -extern int nni_url_to_address(nng_sockaddr *, const nni_url *); +extern int nni_url_to_address(nng_sockaddr *, const nng_url *); #endif // CORE_URL_H -- cgit v1.2.3-70-g09d2