From a946d79e8d0eb3a47f75d6e1e98a28462c584d67 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 12:32:15 -0800 Subject: http: handler set tree no longer returns a value (API break) --- include/nng/supplemental/http/http.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index 4bcc6ec6..a25768e9 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -378,7 +378,7 @@ NNG_DECL int nng_http_handler_collect_body(nng_http_handler *, bool, size_t); // for a hierarchical tree, rather than just a single path, so it will be // called for all child paths supplied. By default the handler is only // called for an exact path match. -NNG_DECL int nng_http_handler_set_tree(nng_http_handler *); +NNG_DECL void nng_http_handler_set_tree(nng_http_handler *); // nng_http_handler_set_tree_exclusive indicates that the handler is being // registered for a heirarchical tree *exclusively*, rather than just a single @@ -386,7 +386,7 @@ NNG_DECL int nng_http_handler_set_tree(nng_http_handler *); // handler is only called for an exact path match. Exclusive means that any // other handler on a conflicting path will induce an address conflict error // when added to a server. -NNG_DECL int nng_http_handler_set_tree_exclusive(nng_http_handler *); +NNG_DECL void nng_http_handler_set_tree_exclusive(nng_http_handler *); // nng_http_handler_set_data is used to store additional data, along with // a possible clean up routine. (The clean up is a custom de-allocator and -- cgit v1.2.3-70-g09d2