.TH "err.h" 3 "Bark" \" -*- nroff -*- .ad l .nh .SH NAME err.h \- Bark error codes and status helpers\&. .SH SYNOPSIS .br .PP .SS "Macros" .in +1c .ti -1c .RI "#define \fBBARK_ERR_INVALID\fP \fBBARK_ERR_INVAL\fP" .br .RI "Alias for \fBBARK_ERR_INVAL\fP\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef enum \fBbark_err\fP \fBbark_err_t\fP" .br .RI "Status and error codes returned by Bark functions\&. " .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBbark_err\fP { \fBBARK_OK\fP = 0, \fBBARK_ERR_INVAL\fP = -1, \fBBARK_ERR_NOMEM\fP = -2, \fBBARK_ERR_IO\fP = -3, \fBBARK_ERR_AGAIN\fP = -4, \fBBARK_ERR_STATE\fP = -5, \fBBARK_ERR_CRYPTO\fP = -6, \fBBARK_ERR_CANCELED\fP = -7, \fBBARK_ERR_UNAVAILABLE\fP = -100 }" .br .RI "Status and error codes returned by Bark functions\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "const char * \fBbark_err_str\fP (int err)" .br .RI "Return a stable, non-NULL human-readable label for a Bark error code\&. " .in -1c .SH "Detailed Description" .PP Bark error codes and status helpers\&. Shared error codes returned by Bark capability APIs\&. .SH "Enumeration Type Documentation" .PP .SS "enum \fBbark_err\fP" .PP Status and error codes returned by Bark functions\&. .PP \fBEnumerator\fP .in +1c .TP \f(BIBARK_OK \fP Operation succeeded\&. .TP \f(BIBARK_ERR_INVAL \fP Invalid argument or NULL pointer\&. .TP \f(BIBARK_ERR_NOMEM \fP Out of memory or buffer too small\&. .TP \f(BIBARK_ERR_IO \fP Operating system or I/O failure\&. .TP \f(BIBARK_ERR_AGAIN \fP Resource temporarily busy; retry later\&. .TP \f(BIBARK_ERR_STATE \fP Invalid lifecycle or handle state\&. .TP \f(BIBARK_ERR_CRYPTO \fP Cryptographic operation failed\&. .TP \f(BIBARK_ERR_CANCELED \fP Operation canceled by user or caller\&. .TP \f(BIBARK_ERR_UNAVAILABLE \fP Capability unavailable or denied by host policy\&. .SH "Function Documentation" .PP .SS "const char * bark_err_str (int err)" .PP Return a stable, non-NULL human-readable label for a Bark error code\&. .PP \fBParameters\fP .RS 4 \fIerr\fP Error code from \fBbark_err_t\fP\&. .RE .PP \fBReturns\fP .RS 4 Static NUL-terminated error label string\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Bark from the source code\&.