Core functionality(3) Core functionality(3)
NAME
Core functionality -
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)
Function Documentation
void* _discover_create_message (discover_error_t ** status, char * message)
Allocate memory for a char * variable. This routine was written for
discover_error_t struct.
Definition at line 82 of file(1,n) core.c.
References discover_error_t, and discover_error::message.
void discover_error_free (discover_error_t * status)
Free a discover_error_t structure.
Definition at line 95 of file(1,n) core.c.
References discover_error_t, and discover_error::message.
discover_error_t* discover_error_new (void)
Allocate and initialize a discover_error_t structure.
Definition at line 68 of file(1,n) core.c.
References discover_error::code, discover_error::create_message,
discover_error_t, and discover_error::message.
int discover_major_version (void)
Get the major version(1,3,5) number.
Definition at line 124 of file(1,n) core.c.
int discover_micro_version (void)
Get the micro version(1,3,5) number.
Definition at line 142 of file(1,n) core.c.
int discover_minor_version (void)
Get the minor version(1,3,5) number.
Definition at line 133 of file(1,n) core.c.
char* discover_strerror (discover_error_t * err)
Convert an error(8,n) code to a human-readable string(3,n) localized according to
the current locale(3,5,7) (XXX: no i18n yet).
Parameters:
err Error code to convert
Definition at line 111 of file(1,n) core.c.
References discover_error::code, and discover_error_t.
discover(1,3,5) 19 Nov 2004 Core functionality(3)