From ab460d51aee7cedd0a8d17553741b3a6dc836dc7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Dec 2024 21:23:26 -0800 Subject: transports: all transports use the new inline approach We can retire the old approach that used separate allocations, and all of the supporting code. This also gives us a more natural signature for the end point initializations. --- src/sp/transport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp/transport.h') diff --git a/src/sp/transport.h b/src/sp/transport.h index 6d1e0d4a..28f1535b 100644 --- a/src/sp/transport.h +++ b/src/sp/transport.h @@ -32,7 +32,7 @@ struct nni_sp_dialer_ops { // d_init creates a vanilla dialer. The value created is // used for the first argument for all other dialer functions. - int (*d_init)(void **, nng_url *, nni_dialer *); + int (*d_init)(void *, nng_url *, nni_dialer *); // d_fini frees the resources associated with the dialer. // The dialer will already have been closed. @@ -78,7 +78,7 @@ struct nni_sp_listener_ops { // l_init creates a vanilla listener. The value created is // used for the first argument for all other listener functions. - int (*l_init)(void **, nng_url *, nni_listener *); + int (*l_init)(void *, nng_url *, nni_listener *); // l_fini frees the resources associated with the listener. // The listener will already have been closed. -- cgit v1.2.3-70-g09d2