cpfsyslog/src/sysparser.h

25 lines
423 B
C

#include "pfparser.h"
#define DF_MONTH_LEN 9
/*TODO numeric indicator for month?*/
struct Datefields {
char month[DF_MONTH_LEN];
int day;
int hour;
int minute;
int second;
};
/*TODO check max app name length*/
#define MSG_APP_LEN 16
struct SysMessage {
int priority;
char application[MSG_APP_LEN];
struct Datefields date;
};
int sysmsg_parse(struct SysMessage* result, char* message);