mirror of
https://github.com/ipxe/ipxe
synced 2026-01-12 08:28:37 +03:00
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).
17 lines
338 B
C
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 */
|