X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=error.c;h=c9b8589e218991059c3dcc4cd4eeeb6fb4f340e7;hb=2ecc5d432fd17127fd221ca4940f9617569911d1;hp=d0697bc84e84fda1f9e4046ab317176bbd1d4c88;hpb=b5a8e848256f54b32ca988be5a1ec2db5048873a;p=libsigrok.git diff --git a/error.c b/error.c index d0697bc8..c9b8589e 100644 --- a/error.c +++ b/error.c @@ -20,6 +20,23 @@ #include "libsigrok.h" +/** + * @file + * + * Error handling in libsigrok. + */ + +/** + * @defgroup grp_error Error handling + * + * Error handling in libsigrok. + * + * libsigrok functions usually return @ref SR_OK upon success, or a negative + * error code on failure. + * + * @{ + */ + /** * Return a human-readable error string for the given libsigrok error code. * @@ -108,3 +125,5 @@ SR_API const char *sr_strerror_name(int error_code) return str; } + +/** @} */