diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 16:44:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 16:44:41 -0400 |
commit | b9d58f74ea1d072e7a2d1c862dc7a1e0fe5fccb0 (patch) | |
tree | 9b01f7f6e96af405457cba746ca85dd21d38a3e5 /include/zix/common.h | |
parent | 9ac3f4e009fd0d393d2c41449b121498e5b7ad54 (diff) | |
download | zix-b9d58f74ea1d072e7a2d1c862dc7a1e0fe5fccb0.tar.gz zix-b9d58f74ea1d072e7a2d1c862dc7a1e0fe5fccb0.tar.bz2 zix-b9d58f74ea1d072e7a2d1c862dc7a1e0fe5fccb0.zip |
Factor out converting errno codes to ZixStatus
Diffstat (limited to 'include/zix/common.h')
-rw-r--r-- | include/zix/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zix/common.h b/include/zix/common.h index 5919fa9..c0944b5 100644 --- a/include/zix/common.h +++ b/include/zix/common.h @@ -33,6 +33,11 @@ ZIX_CONST_API const char* zix_strerror(ZixStatus status); +/// Return an errno value converted to a status code +ZIX_CONST_API +ZixStatus +zix_errno_status(int e); + /// Function for comparing two elements typedef int (*ZixComparator)(const void* a, const void* b, |