s/add_device_user/device_add_user/
[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 #define __init __attribute__((constructor))
23
24 struct device;
25 struct interface;
26
27 extern struct uci_context *uci_ctx;
28 extern bool config_init;
29
30 int avl_strcmp(const void *k1, const void *k2, void *ptr);
31 void config_init_interfaces(const char *name);
32
33 #endif