Files
sics/errormsg.h
zolliker b5b4da2776 - unified the 2 script context commands
- minor changes in hipadaba and ascon/devser
2008-05-30 09:29:44 +00:00

33 lines
845 B
C

#ifndef ERRORMSG_H
#define ERRORMSG_H
#include <time.h>
/** \file
* \brief Error message collection
*/
/** \brief Error message item
*/
typedef struct ErrMsg {
struct ErrMsg *next;
char *text; /**< the message text */
char *cmpr; /**< compressed message text */
int cnt; /**< count */
time_t last; /**< time of last message */
} ErrMsg;
/** \brief Put a formatted message to the error message list
*
* The error message list contains only one entry for all messages
* with the same text, storing only the count and the last used time.
* Characters within sqaure brackets are not taken into account
* when comparing messages.
*
* \param dump the error message list
* \param fmt the format for the message
* \return the new error message list head
*/
ErrMsg *ErrPutMsg(ErrMsg *dump, char *fmt, ...);
#endif