123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef _DNS_RESOLVER_H_
- #define _DNS_RESOLVER_H_
- #include "DnsProxyListener.h"
- #include "ResolverController.h"
- #include "netd_resolv/resolv.h"
- #include "netdutils/Log.h"
- namespace android {
- namespace net {
- class DnsResolver {
- public:
- static DnsResolver* getInstance();
- bool start();
- int setLogSeverity(int32_t logSeverity);
- DnsResolver(DnsResolver const&) = delete;
- void operator=(DnsResolver const&) = delete;
- ResolverController resolverCtrl;
- private:
- DnsResolver() {}
- DnsProxyListener mDnsProxyListener;
- };
- extern DnsResolver* gDnsResolv;
- extern ResolverNetdCallbacks gResNetdCallbacks;
- extern netdutils::Log gDnsResolverLog;
- }
- }
- #endif
|