fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
errcode.h File Reference

Error code definitions and message strings. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FP_EOK   0
 No error.
 
#define FP_ERANGE   1
 Value out of range.
 
#define FP_EINVLARG   2
 Invalid argument.
 
#define FP_ESYSCALL   3
 System call error.
 
#define FP_ENOMEM   4
 Out of memory.
 
#define FP_EPTHREAD   5
 pthread error
 
#define FP_EZSTD   6
 zstd error
 
#define FP_EAUDINIT   7
 ALUT init error.
 
#define FP_EAUDPLAY   8
 Audio playback error.
 
#define FP_EINVLBIN   9
 Invalid binary data.
 
#define FP_EINVLFMT   10
 Invalid JSON data.
 
#define FP_ENOSDEV   11
 Serial device not found.
 
#define FP_ESDEVINIT   12
 Serial device init error.
 
#define FP_ECOUNT   13
 Number of error codes.
 

Functions

const char * FP_strerror (int err)
 Returns the error message string for the given error code.
 

Detailed Description

Error code definitions and message strings.

Macro Definition Documentation

◆ FP_EAUDINIT

#define FP_EAUDINIT   7

ALUT init error.

◆ FP_EAUDPLAY

#define FP_EAUDPLAY   8

Audio playback error.

◆ FP_ECOUNT

#define FP_ECOUNT   13

Number of error codes.

◆ FP_EINVLARG

#define FP_EINVLARG   2

Invalid argument.

◆ FP_EINVLBIN

#define FP_EINVLBIN   9

Invalid binary data.

◆ FP_EINVLFMT

#define FP_EINVLFMT   10

Invalid JSON data.

◆ FP_ENOMEM

#define FP_ENOMEM   4

Out of memory.

◆ FP_ENOSDEV

#define FP_ENOSDEV   11

Serial device not found.

◆ FP_EOK

#define FP_EOK   0

No error.

◆ FP_EPTHREAD

#define FP_EPTHREAD   5

pthread error

◆ FP_ERANGE

#define FP_ERANGE   1

Value out of range.

◆ FP_ESDEVINIT

#define FP_ESDEVINIT   12

Serial device init error.

◆ FP_ESYSCALL

#define FP_ESYSCALL   3

System call error.

◆ FP_EZSTD

#define FP_EZSTD   6

zstd error

Function Documentation

◆ FP_strerror()

const char * FP_strerror ( int err)

Returns the error message string for the given error code.

Parameters
errthe error code to get the message for, must be in the range of [0, FP_ECOUNT), negative values are treated as positive
Returns
the error message string, otherwise "FP_EUNKNOWN" if the error code is out of range
Here is the caller graph for this function: