Move resolver public headers to separate include path
Additionally rename functions and structs to eliminate those ugly
underscores from the public API (with the notable exception of
__res_params, which will come in its own separate change to keep this
one from growing too large).
Test: build, flash, then 'atest netd_integration_test'
Change-Id: I7e9b0ee6cdbec889e9c35b5a17b5daa65533686e
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp
index b722c76..a55b10c 100644
--- a/server/NetworkController.cpp
+++ b/server/NetworkController.cpp
@@ -29,9 +29,9 @@
#include "log/log.h"
#include <android-base/strings.h>
+#include <netd_resolv/resolv.h>
#include "cutils/misc.h"
-#include "resolv_netid.h"
#include "Controllers.h"
#include "DummyNetwork.h"
@@ -41,6 +41,7 @@
#include "PhysicalNetwork.h"
#include "RouteController.h"
#include "VirtualNetwork.h"
+#include "netid_client.h"
#define DBG 0
@@ -470,7 +471,7 @@
}
mNetworks.erase(netId);
delete network;
- _resolv_delete_cache_for_net(netId);
+ resolv_delete_cache_for_net(netId);
for (auto iter = mIfindexToLastNetId.begin(); iter != mIfindexToLastNetId.end();) {
if (iter->second == netId) {