Add dns_resolver module

dns_resolver module provides a means for all kernel mode code to resolve
DNS hostnames.
This commit is contained in:
Pawel Dziepak
2012-06-29 02:14:54 +02:00
parent 5fb2be8872
commit 21769ef603
11 changed files with 368 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Paweł Dziepak, [email protected]
*/
#ifndef DNS_RESOLVER_H
#define DNS_RESOLVER_H
#include <module.h>
#define DNS_RESOLVER_MODULE_NAME "network/dns_resolver/v1"
struct dns_resolver_module {
module_info module;
status_t (*dns_resolve)(const char* host, uint32* addr);
};
#endif // DNS_RESOLVER_H