Add initial dump() method to NetdNativeService
This is called by "dumpsys netd".
Bug: 27239233
Change-Id: I27fb308f8067243ff241a6f8fd6a83f406087d2a
diff --git a/server/NetworkController.h b/server/NetworkController.h
index 6d72aeb..195cdbd 100644
--- a/server/NetworkController.h
+++ b/server/NetworkController.h
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <vector>
+class DumpWriter;
class Network;
class UidRanges;
class VirtualNetwork;
@@ -90,6 +91,8 @@
void allowProtect(const std::vector<uid_t>& uids);
void denyProtect(const std::vector<uid_t>& uids);
+ void dump(DumpWriter& dw);
+
private:
bool isValidNetwork(unsigned netId) const;
Network* getNetworkLocked(unsigned netId) const;