err.h(3)Bark

NAME

err.h - Bark error codes and status helpers.

SYNOPSIS

Macros

#define BARK_ERR_INVALID BARK_ERR_INVAL

Alias for BARK_ERR_INVAL.

Typedefs

typedef enum bark_err bark_err_t

Status and error codes returned by Bark functions.

Enumerations

enum bark_err { BARK_OK = 0, BARK_ERR_INVAL = -1, BARK_ERR_NOMEM = -2, BARK_ERR_IO = -3, BARK_ERR_AGAIN = -4, BARK_ERR_STATE = -5, BARK_ERR_CRYPTO = -6, BARK_ERR_CANCELED = -7, BARK_ERR_UNAVAILABLE = -100 }

Status and error codes returned by Bark functions.

Functions

const char * bark_err_str (int err)

Return a stable, non-NULL human-readable label for a Bark error code.

Detailed Description

Bark error codes and status helpers.

Shared error codes returned by Bark capability APIs.

Enumeration Type Documentation

enum bark_err

Status and error codes returned by Bark functions.

Enumerator

BARK_OK
Operation succeeded.
BARK_ERR_INVAL
Invalid argument or NULL pointer.
BARK_ERR_NOMEM
Out of memory or buffer too small.
BARK_ERR_IO
Operating system or I/O failure.
BARK_ERR_AGAIN
Resource temporarily busy; retry later.
BARK_ERR_STATE
Invalid lifecycle or handle state.
BARK_ERR_CRYPTO
Cryptographic operation failed.
BARK_ERR_CANCELED
Operation canceled by user or caller.
BARK_ERR_UNAVAILABLE
Capability unavailable or denied by host policy.

Function Documentation

const char * bark_err_str (int err)

Return a stable, non-NULL human-readable label for a Bark error code.

Parameters

err Error code from bark_err_t.

Returns

Static NUL-terminated error label string.

Author

Generated automatically by Doxygen for Bark from the source code.