From c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Apr 2025 19:07:03 -0700 Subject: AIO: Use nng_err for cancellation callback instead of int. This is part of our work to improve type safety/awareness, and also improve debugger support, for NNG error codes. There are still quite a few more but this should help. --- include/nng/nng.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 574a0427..21d7f290 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -680,7 +680,7 @@ NNG_DECL void nng_aio_finish(nng_aio *, int); // This returns false if the operation cannot be deferred (because the AIO // has been stopped with nng_aio_stop.) If it does so, then the aio's // completion callback will fire with a result of NNG_ESTOPPED. -typedef void (*nng_aio_cancelfn)(nng_aio *, void *, int); +typedef void (*nng_aio_cancelfn)(nng_aio *, void *, nng_err); NNG_DECL bool nng_aio_start(nng_aio *, nng_aio_cancelfn, void *); // nng_aio_sleep does a "sleeping" operation, basically does nothing -- cgit v1.2.3-70-g09d2