nexus: Switch controllers to use abstracted properties and refactor command protocol
Also fixes a select() bug and removes debugging
Signed-off-by: San Mehat <san@google.com>
nexus: fix whitespace
diff --git a/nexus/VpnController.h b/nexus/VpnController.h
index 4088e6a..0a93990 100644
--- a/nexus/VpnController.h
+++ b/nexus/VpnController.h
@@ -33,14 +33,14 @@
virtual int start();
virtual int stop();
+ virtual int setProperty(const char *name, char *value);
+ virtual const char *getProperty(const char *name, char *buffer,
+ size_t maxlen);
+
+private:
virtual int enable();
virtual int disable();
- struct in_addr &getVpnGateway() { return mVpnGateway; }
- int setVpnGateway(const char *vpnGw);
- int setVpnGateway(struct in_addr *vpnGw);
-
-protected:
};
#endif