logd: add udebug support
[project/ubox.git] / log / syslog.h
index b682cedf504f08958a4cf83858c942a2fb6257f7..b6419e5d66a89c8b646ac2d9016e704e828c4632 100644 (file)
 #ifndef __SYSLOG_H
 #define __SYSLOG_H
 
+#define LOG_LINE_SIZE          1024
+
+#include <udebug.h>
+
 enum {
        SOURCE_KLOG = 0,
        SOURCE_SYSLOG = 1,
@@ -26,7 +30,7 @@ struct log_head {
        unsigned int id;
        int priority;
        int source;
-        struct timespec ts;
+       struct timespec ts;
        char data[];
 };
 
@@ -38,5 +42,7 @@ struct log_head* log_list(int count, struct log_head *h);
 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