add a function for adding a virtual device (not tracked in the avl tree)
[project/netifd.git] / netifd.h
1 #ifndef __NETIFD_H
2 #define __NETIFD_H
3
4 #include <sys/socket.h>
5 #include <net/if.h>
6
7 #include <stdbool.h>
8 #include <stdio.h>
9
10 #include <libubox/list.h>
11 #include <libubox/uloop.h>
12
13 #include <libubus.h>
14 #include <uci.h>
15
16 #include "device.h"
17 #include "interface.h"
18
19 #ifdef DEBUG
20 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
21 #else
22 #define DPRINTF(...) do {} while(0)
23 #endif
24
25 extern struct uci_context *uci_ctx;
26
27 void config_init_interfaces(const char *name);
28
29 #endif