Data Structures | |
struct | dcpl_error |
A structure that is passed to most DCPL API to get a maximum of information about a platform error. More... | |
Defines | |
#define | DCPL_REACTOR_INTR -200 |
Reactor interrupted. | |
Typedefs | |
typedef struct dcpl_error | dcpl_error_t |
A structure that is passed to most DCPL API to get a maximum of information about a platform error. | |
Functions | |
int | dcpl_init_error (struct dcpl_error *error_info) |
Initialize a DPCL error structure to "No error". | |
int | dcpl_set_error (struct dcpl_error *error_info, int error, char *detail) |
Set a DPCL error structure. | |
const char * | dcpl_error_string (struct dcpl_error *error_info, char *error_string_buf, int buflen) |
Get a message for a DCPL error. |
#define DCPL_REACTOR_INTR -200 |
Reactor interrupted.
typedef struct dcpl_error dcpl_error_t |
A structure that is passed to most DCPL API to get a maximum of information about a platform error.
int dcpl_init_error | ( | struct dcpl_error * | error_info | ) |
Initialize a DPCL error structure to "No error".
error_info | The error structure to initialize. |
int dcpl_set_error | ( | struct dcpl_error * | error_info, | |
int | error, | |||
char * | detail | |||
) |
Set a DPCL error structure.
The syserr member should be set automatically.
error_info | The error structure to initialize. | |
error | The DPCL error. | |
detail | An optional message string. |
const char* dcpl_error_string | ( | struct dcpl_error * | error_info, | |
char * | error_string_buf, | |||
int | buflen | |||
) |
Get a message for a DCPL error.
error_info | The DCPL error structure. | |
error_string_buf | A buffer where the error string can be written | |
buflen | The size of the buffer |