From ed21aa20efde1c35f3e06d58c925a7c07aef0093 Mon Sep 17 00:00:00 2001 From: icex2 Date: Sun, 28 Jan 2024 22:04:38 +0100 Subject: [PATCH] feat(avs-api): Introduce AVS error type Supports improving expressiveness of the API interface --- src/imports/avs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/imports/avs.h b/src/imports/avs.h index 38547d7..34ad32e 100644 --- a/src/imports/avs.h +++ b/src/imports/avs.h @@ -182,6 +182,11 @@ void avs_boot( void avs_shutdown(void); +typedef uint32_t avs_desc; +typedef int avs_error; + +#define AVS_IS_ERROR(x) x < 0 + void log_body_fatal(const char *module, const char *fmt, ...); void log_body_info(const char *module, const char *fmt, ...); void log_body_misc(const char *module, const char *fmt, ...);