Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-int log_buffer_size(void)
-{
- return log_size;
-}
-
void log_init(void)
{
regcomp(&pat_prio, "^<([0-9]*)>(.*)", REG_EXTENDED);
void log_init(void)
{
regcomp(&pat_prio, "^<([0-9]*)>(.*)", REG_EXTENDED);
typedef void (*log_list_cb)(struct log_head *h);
struct log_head* log_list(int count, struct log_head *h);
int log_buffer_init(int size);
typedef void (*log_list_cb)(struct log_head *h);
struct log_head* log_list(int count, struct log_head *h);
int log_buffer_init(int size);
-int log_buffer_size(void);
void log_add(char *buf, int size, int source);
#endif
void log_add(char *buf, int size, int source);
#endif