aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 12:32:15 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 12:32:15 -0800
commita946d79e8d0eb3a47f75d6e1e98a28462c584d67 (patch)
treedc848a251a9f483eccbae1d043e52136eabb473f /include
parent2662596f105fc98ae1d2aa3b6137261bb351a8df (diff)
downloadnng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.tar.gz
nng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.tar.bz2
nng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.zip
http: handler set tree no longer returns a value (API break)
Diffstat (limited to 'include')
-rw-r--r--include/nng/supplemental/http/http.h4
1 files changed, 2 insertions, 2 deletions
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