diff --git a/error/error.c b/error/error.c new file mode 100644 index 0000000..424eb23 --- /dev/null +++ b/error/error.c @@ -0,0 +1,6 @@ +#include "error.h" + +int main(int argc, char **argv){ + + return 0; +} diff --git a/error/error.h b/error/error.h new file mode 100644 index 0000000..7267fb3 --- /dev/null +++ b/error/error.h @@ -0,0 +1,42 @@ +#include "../list/list_easy.h" +#include + +#ifndef ERROR_H +#define ERROR_H + +#define HIGH 0x3 +#define STANDARD 0x2 +#define LOW 0x1 + +typedef struct Info{ + char *head; + char *body; + char *tail; +}Info; + +typedef struct Error{ + unsigned int type; + int pri; + Info info; + time_t time; +}Error; + +typedef struct Notice{ + unsigned int type; + Info info; + time_t time; +}Notice; + +typedef struct Log{ + FILE *fp; + int if_enable; + unsigned long int id; + unsigned int type; +}Log; + +List *error_list; +List *log_list; + + + +#endif diff --git a/list/list_easy.h b/list/list_easy.h index fe3d50d..e35c68e 100644 --- a/list/list_easy.h +++ b/list/list_easy.h @@ -67,4 +67,6 @@ int list_through(List *p_list, int (*p_func)(void *, const char *)){ } return 0; } + + #endif