X-Git-Url: http://git.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=netifd.h;h=b70b73c435b799abecb10df4de6189b701f3237a;hp=fabf4d9d21a4f419d131f263f0d8b87806ef655f;hb=fd4efb1bbfe5a502a802f43871cfae9944c8d75f;hpb=5d1fff7af6f77c9bf0d46572c7af563cd9fc55b3 diff --git a/netifd.h b/netifd.h index fabf4d9..b70b73c 100644 --- a/netifd.h +++ b/netifd.h @@ -13,17 +13,21 @@ #include #include -#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 +#define __init __attribute__((constructor)) + +struct device; +struct interface; + extern struct uci_context *uci_ctx; +extern bool config_init; +int avl_strcmp(const void *k1, const void *k2, void *ptr); void config_init_interfaces(const char *name); #endif