00001 #ifndef _HLBR_LIB_H_ 00002 #define _HLBR_LIB_H_ 00003 00004 #include <stdio.h> 00005 00006 00011 struct queue_t { 00012 char *item; 00013 struct queue_t *next; 00014 }; 00015 typedef struct queue_t QueueList; 00016 00017 00022 typedef struct log_file_rec { 00023 char fname[1024]; 00024 FILE* fp; 00025 } LogFileRec; 00026 00027 00028 00029 /**************/ 00030 /* Prototypes */ 00031 /**************/ 00032 FILE* LogFile(LogFileRec*); 00033 void CloseLogFile(LogFileRec*); 00034 int LogMessage(char*, void*); 00035 00036 char *ParseCmp(char *,char *); 00037 char *RmSpace(char *); 00038 00039 QueueList *ListAdd(char *,QueueList *, char); 00040 QueueList *ListDel(char *,QueueList *,int *); 00041 void ListClear(QueueList *); 00042 00043 void DumpBuffer(unsigned char *, int, FILE *); 00044 00045 #endif /* _HLBR_LIB_H_ */