Convert IdletimerController to iptables-restore.
Bug: 28362720
Test: bullhead builds,boots
Test: netd_{unit,integration}_test pass
Change-Id: I435346a25a25df23e72dbc5be4ead0782e36c78d
diff --git a/server/IdletimerController.h b/server/IdletimerController.h
index 33abdb6..87e0b4e 100644
--- a/server/IdletimerController.h
+++ b/server/IdletimerController.h
@@ -18,6 +18,8 @@
#include <stdint.h>
+#include "NetdConstants.h"
+
class IdletimerController {
public:
@@ -43,7 +45,7 @@
const char *classLabel);
friend class IdletimerControllerTest;
- static int (*execFunction)(int, char **, int *, bool, bool);
+ static int (*execIptablesRestore)(IptablesTarget, const std::string&);
};
#endif