Files
ipxe/src/include/resolv.h
Michael Brown dad5274522 Add "name" field to struct device to allow human-readable hardware device
names.

Add "dev" pointer in struct net_device to tie network interfaces back to a
hardware device.

Force natural alignment of data types in __table() macros.  This seems to
prevent gcc from taking the unilateral decision to occasionally increase
their alignment (which screws up the table packing).
2007-01-10 04:22:09 +00:00

17 lines
338 B
C

#ifndef RESOLV_H
#define RESOLV_H
#include <gpxe/in.h>
#include <gpxe/tables.h>
struct resolver {
const char *name;
int ( * resolv ) ( struct in_addr *address, const char *name );
};
#define __resolver __table ( struct resolver, resolver, 01 )
extern int resolv ( struct in_addr *address, const char *name );
#endif /* RESOLV_H */