keep track of all running child processes in one place
[project/netifd.git] / netifd.h
index d034e7a..5eeb5e2 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -48,6 +48,15 @@ static inline void no_debug(int level, const char *fmt, ...)
 {
 }
 
 {
 }
 
+struct netifd_process {
+       struct list_head list;
+       struct uloop_process uloop;
+       void (*cb)(struct netifd_process *, int ret);
+};
+
+int netifd_start_process(const char **argv, char **env, int dir_fd, struct netifd_process *proc);
+void netifd_kill_process(struct netifd_process *proc);
+
 struct device;
 struct interface;
 
 struct device;
 struct interface;