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 d7c151
void(*p_if_freenameindex)(struct if_nameindex*) = if_freenameindex;
nsz d7c151
char*(*p_if_indextoname)(unsigned,char*) = if_indextoname;
nsz d7c151
struct if_nameindex*(*p_if_nameindex)(void) = if_nameindex;
nsz d7c151
unsigned(*p_if_nametoindex)(const char*) = if_nametoindex;
nsz d7c151
}