00001 00003 #ifndef __LOG_H_ 00004 #define __LOG_H_ 00005 00007 typedef struct _log_t 00008 { 00009 00010 } log_t; 00011 00012 void log_init(log_t* l); 00013 void log_destroy(log_t* l); 00014 00015 void log_append(log_t* l, char *item); 00016 char *log_pop(log_t* l); 00017 char *log_at(log_t* l, unsigned int idx); 00018 unsigned int log_size(log_t* l); 00019 char *log_search(log_t* l, const char *prefix); 00020 00021 #endif