Add ubus methods for global interface status
[project/netifd.git] / netifd.h
index ac0c0f2..befa2cc 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -21,6 +21,8 @@
 #include <stdio.h>
 
 #include <libubox/uloop.h>
+#include <libubox/ustream.h>
+#include <libubox/utils.h>
 
 #include <libubus.h>
 
@@ -77,10 +79,8 @@ struct netifd_process {
        void (*cb)(struct netifd_process *, int ret);
        int dir_fd;
 
-       struct uloop_fd log_uloop;
+       struct ustream_fd log;
        const char *log_prefix;
-       char *log_buf;
-       int log_buf_ofs;
        bool log_overflow;
 };