Functions | |
discover_error_t * | discover_error_new (void) |
void * | _discover_create_message (discover_error_t **status, char *message) |
void | discover_error_free (discover_error_t *status) |
char * | discover_strerror (discover_error_t *err) |
int | discover_major_version (void) |
int | discover_minor_version (void) |
int | discover_micro_version (void) |
|
Allocate memory for a char * variable. This routine was written for discover_error_t struct. Definition at line 82 of file core.c. Referenced by discover_error_new(). |
|
Free a discover_error_t structure. Definition at line 95 of file core.c. References discover_error::message. |
|
Allocate and initialize a discover_error_t structure. Definition at line 68 of file core.c. References _discover_create_message(), discover_error::code, discover_error::create_message, and discover_error::message. |
|
Get the major version number. |
|
Get the micro version number. |
|
Get the minor version number. |
|
Convert an error code to a human-readable string localized according to the current locale (XXX: no i18n yet).
Definition at line 111 of file core.c. References discover_error::code. |