projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proto-shell: fix legacy proto_config_add_* functions, make them wrap around config_add_*
[project/netifd.git]
/
netifd.h
diff --git
a/netifd.h
b/netifd.h
index
ac0c0f2
..
1f64555
100644
(file)
--- a/
netifd.h
+++ b/
netifd.h
@@
-21,14
+21,16
@@
#include <stdio.h>
#include <libubox/uloop.h>
#include <stdio.h>
#include <libubox/uloop.h>
+#include <libubox/ustream.h>
+#include <libubox/utils.h>
#include <libubus.h>
#include "utils.h"
#ifdef DUMMY_MODE
#include <libubus.h>
#include "utils.h"
#ifdef DUMMY_MODE
-#define DEFAULT_MAIN_PATH "./
dummy
"
-#define DEFAULT_HOTPLUG_PATH "./
script
s/hotplug-cmd"
+#define DEFAULT_MAIN_PATH "./
examples
"
+#define DEFAULT_HOTPLUG_PATH "./
example
s/hotplug-cmd"
#define DEFAULT_RESOLV_CONF "./tmp/resolv.conf"
#else
#define DEFAULT_MAIN_PATH "/lib/netifd"
#define DEFAULT_RESOLV_CONF "./tmp/resolv.conf"
#else
#define DEFAULT_MAIN_PATH "/lib/netifd"
@@
-77,10
+79,8
@@
struct netifd_process {
void (*cb)(struct netifd_process *, int ret);
int dir_fd;
void (*cb)(struct netifd_process *, int ret);
int dir_fd;
- struct u
loop_fd log_uloop
;
+ struct u
stream_fd log
;
const char *log_prefix;
const char *log_prefix;
- char *log_buf;
- int log_buf_ofs;
bool log_overflow;
};
bool log_overflow;
};