diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-19 15:21:52 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-27 01:42:33 +0100 |
commit | 5d1fff7af6f77c9bf0d46572c7af563cd9fc55b3 (patch) | |
tree | 76d080e6b59f9235cd47b0e047f662c1f0a6ce00 /netifd.h |
Initial import
Diffstat (limited to 'netifd.h')
-rw-r--r-- | netifd.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/netifd.h b/netifd.h new file mode 100644 index 0000000..fabf4d9 --- /dev/null +++ b/netifd.h @@ -0,0 +1,29 @@ +#ifndef __NETIFD_H +#define __NETIFD_H + +#include <sys/socket.h> +#include <net/if.h> + +#include <stdbool.h> +#include <stdio.h> + +#include <libubox/list.h> +#include <libubox/uloop.h> + +#include <libubus.h> +#include <uci.h> + +#include "device.h" +#include "interface.h" + +#ifdef DEBUG +#define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__) +#else +#define DPRINTF(...) do {} while(0) +#endif + +extern struct uci_context *uci_ctx; + +void config_init_interfaces(const char *name); + +#endif |