27#ifndef PROTOCORE_DNS_SERVER_H
28#define PROTOCORE_DNS_SERVER_H
32#if PROTOCORE_ENABLE_DNS_SERVER
41typedef uint32_t (*DnsResolveFn)(
const char *name);
102extern DnsServerVars DnsServerV;
107 void (*
const build_response)(uint8_t *work);
108 void (*
const add)(uint8_t *work);
109 void (*
const clear)(uint8_t *work);
110 void (*
const begin)(uint8_t *work);
111 void (*
const lookup)(uint8_t *work);
116void protocore_dns_server_build_response(uint8_t *work);
117void protocore_dns_server_add(uint8_t *work);
118void protocore_dns_server_clear(uint8_t *work);
119void protocore_dns_server_begin(uint8_t *work);
120void protocore_dns_server_lookup(uint8_t *work);
126static const DnsServerNs DnsServer __attribute__((unused)) = {
127 .build_response = protocore_dns_server_build_response,
128 .add = protocore_dns_server_add,
129 .clear = protocore_dns_server_clear,
130 .begin = protocore_dns_server_begin,
131 .lookup = protocore_dns_server_lookup,
143uint8_t *protocore_dns_server_span(
void);
154uint32_t protocore_dns_server_resolve(
const char *name);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS