Add dns_resolver module
dns_resolver module provides a means for all kernel mode code to resolve DNS hostnames.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user