diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-12 14:43:31 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-12 14:43:31 -0800 |
| commit | 2ddaecdadb8a931188b3f3e6b8ad43b9cba45d0f (patch) | |
| tree | ddab0fbc8bb631fc31c233e09cd83a561988158d /docs/ref/api/aio.md | |
| parent | d88484cafbf973d55dc95b7edcae5064efa8bad0 (diff) | |
| download | nng-2ddaecdadb8a931188b3f3e6b8ad43b9cba45d0f.tar.gz nng-2ddaecdadb8a931188b3f3e6b8ad43b9cba45d0f.tar.bz2 nng-2ddaecdadb8a931188b3f3e6b8ad43b9cba45d0f.zip | |
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.
Diffstat (limited to 'docs/ref/api/aio.md')
| -rw-r--r-- | docs/ref/api/aio.md | 4 |
1 files changed, 2 insertions, 2 deletions
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); ``` |
