771bcea69c21336e3b6598930c0439b447c944de
[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 #ifdef DEBUG
17 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
18 #else
19 #define DPRINTF(...) do {} while(0)
20 #endif
21
22 struct device;
23 struct interface;
24
25 extern struct uci_context *uci_ctx;
26 extern bool config_init;
27
28 int avl_strcmp(const void *k1, const void *k2, void *ptr);
29 void config_init_interfaces(const char *name);
30
31 #endif