mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-17 00:31:32 +00:00
824d6ffa7f
I want to get to the point where any header in include/ reflects a standard user-level header (e.g. a POSIX header), while everything that's specific to gPXE lives in include/gpxe/. Headers that reflect a Linux header (e.g. if_ether.h) should also be in include/gpxe/, with the same name as the Linux header and, preferably, the same names used for the definitions.
17 lines
317 B
C
17 lines
317 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(resolver,01)
|
|
|
|
extern int resolv ( struct in_addr *address, const char *name );
|
|
|
|
#endif /* RESOLV_H */
|