28 lines
625 B
C
28 lines
625 B
C
/*
|
|
* errormanager.h
|
|
*
|
|
* Created on: Aug 25, 2017
|
|
*
|
|
* Author: Michael E. Tryby
|
|
* US EPA - ORD/NRMRL
|
|
*/
|
|
|
|
#ifndef ERRORMANAGER_H_
|
|
#define ERRORMANAGER_H_
|
|
|
|
#define ERR_MAXMSG 256
|
|
|
|
typedef struct error_s {
|
|
int error_status;
|
|
void (*p_msg_lookup)(int, char*, int);
|
|
} error_handle_t;
|
|
|
|
error_handle_t* error_new_manager(void (*p_error_message)(int, char*, int));
|
|
void error_dst_manager(error_handle_t* error_handle);
|
|
|
|
int error_set(error_handle_t* error_handle, int errorcode);
|
|
char* error_check(error_handle_t* error_handle);
|
|
void error_clear(error_handle_t* error_handle);
|
|
|
|
#endif /* ERRORMANAGER_H_ */
|