#ifndef __SYSLOG_H
#define __SYSLOG_H
+#define LOG_LINE_SIZE 1024
+
+#include <udebug.h>
+
enum {
SOURCE_KLOG = 0,
SOURCE_SYSLOG = 1,
unsigned int id;
int priority;
int source;
- struct timespec ts;
+ struct timespec ts;
char data[];
};
int log_buffer_init(int size);
void log_add(char *buf, int size, int source);
void ubus_notify_log(struct log_head *l);
+void log_udebug_config(struct udebug_ubus *ctx, struct blob_attr *data,
+ bool enabled);
#endif