#include "dnxError.h"#include <errno.h>#include <string.h>Go to the source code of this file.
Defines | |
| #define | elemcount(x) (sizeof(x)/sizeof(*(x))) |
Functions | |
| dnxError | dnxGetLastError (void) |
| Return the last error code stored in the global dnx error variable. | |
| void | dnxSetLastError (dnxError eno) |
| Set the global dnx error variable to some dnx error value. | |
| char * | dnxErrorString (dnxError eno) |
| Return an error string that matches a specified dnx error code. | |
Variables | |
| static dnxError | gLastError = DNX_OK |
| #define elemcount | ( | x | ) | (sizeof(x)/sizeof(*(x))) |
Definition at line 37 of file dnxError.c.
| char* dnxErrorString | ( | dnxError | eno | ) |
Return an error string that matches a specified dnx error code.
| [in] | eno | - the error code for which a string representation is desired. |
errno. Definition at line 55 of file dnxError.c.
References DNX_ERR_BASE, and elemcount.
| dnxError dnxGetLastError | ( | void | ) |
Return the last error code stored in the global dnx error variable.
Definition at line 47 of file dnxError.c.
References gLastError.
| void dnxSetLastError | ( | dnxError | eno | ) |
Set the global dnx error variable to some dnx error value.
| [in] | eno | - the value to be set. |
Definition at line 51 of file dnxError.c.
References gLastError.
dnxError gLastError = DNX_OK [static] |
Last known error code.
Definition at line 39 of file dnxError.c.
1.5.6