libamxb  4.8.2
Bus Agnostic C API
amxb_error.c File Reference
#include <stddef.h>
#include <amxb/amxb_error.h>

Go to the source code of this file.

Functions

const char * amxb_get_error (int error)
 

Variables

static const char * errors [AMXB_ERROR_MAX]
 

Function Documentation

◆ amxb_get_error()

const char* amxb_get_error ( int  error)

Definition at line 70 of file amxb_error.c.

70  {
71  if((error >= 0) && (error < AMXB_ERROR_MAX)) {
72  return errors[error];
73  }
74 
75  return NULL;
76 }
static const char * errors[AMXB_ERROR_MAX]
Definition: amxb_error.c:59
#define AMXB_ERROR_MAX
Definition: amxb_error.h:130

Variable Documentation

◆ errors

const char* errors[AMXB_ERROR_MAX]
static
Initial value:
= {
"AMXB All OK",
"AMXB Internal error",
"AMXB Invalid uri specified",
"AMXB Not supported uri scheme",
"AMXB Operation not supported",
"AMXB Operation in progress",
"AMXB Invalid file descriptor",
"AMXB Backend failure",
}

Definition at line 59 of file amxb_error.c.