Blame src/api/net_if.c

nsz d7c151
#include <net/if.h>
nsz d7c151
#define F(t,n) {t *y = &x.;;}
nsz d7c151
#define C(n) switch(n){case n:;}
nsz d7c151
static void f()
nsz d7c151
{
nsz d7c151
{
nsz d7c151
struct if_nameindex x;
nsz d7c151
F(unsigned, if_index)
nsz d7c151
F(char*, if_name)
nsz d7c151
}
nsz d7c151
C(IF_NAMESIZE)
nsz 0ef264
{void(*p)(struct if_nameindex*) = if_freenameindex;}
nsz 0ef264
{char*(*p)(unsigned,char*) = if_indextoname;}
nsz 0ef264
{struct if_nameindex*(*p)(void) = if_nameindex;}
nsz 0ef264
{unsigned(*p)(const char*) = if_nametoindex;}
nsz d7c151
}