From 2ddaecdadb8a931188b3f3e6b8ad43b9cba45d0f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2025 14:43:31 -0800 Subject: api: extend usage of nng_err This replaces the int, and we will expand this further, as this makes it clear that the int is actually an error code and helps in debuggers that can provide symbolic values. --- docs/ref/api/aio.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/ref/api/aio.md') diff --git a/docs/ref/api/aio.md b/docs/ref/api/aio.md index 1e6f76fa..dcf9aa85 100644 --- a/docs/ref/api/aio.md +++ b/docs/ref/api/aio.md @@ -81,7 +81,7 @@ is safe to call from _aio_'s own callback. ## Cancellation ```c -void nng_aio_abort(nng_aio *aio, int err); +void nng_aio_abort(nng_aio *aio, nng_err err); void nng_aio_cancel(nng_aio *aio); void nng_aio_stop(nng_aio *aio); ``` @@ -169,7 +169,7 @@ This is the same test used internally by [`nng_aio_wait`]. ## Result of Operation ```c -int nng_aio_result(nng_aio *aio); +nng_err nng_aio_result(nng_aio *aio); size_t nng_aio_count(nng_aio *aio); ``` -- cgit v1.2.3-70-g09d2