From a187d290f15ed2191e994852a6778bf4aa0f083b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 16 May 2015 16:09:28 -0700 Subject: Fixes to control plane, API, eliminate problematic inheritance pattern, and start on a NodeJS class for talking to the network controller. --- service/ControlPlane.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/ControlPlane.hpp') diff --git a/service/ControlPlane.hpp b/service/ControlPlane.hpp index b7b0a857..fc8a0182 100644 --- a/service/ControlPlane.hpp +++ b/service/ControlPlane.hpp @@ -40,7 +40,7 @@ namespace ZeroTier { class OneService; class Node; -class ControlPlaneSubsystem; +class SqliteNetworkController; struct InetAddress; /** @@ -72,7 +72,7 @@ public: * @param prefix First element in URI path * @param subsys Object to call for results of GET and POST/PUT operations */ - inline void mount(const char *prefix,ControlPlaneSubsystem *subsys) + inline void mount(const char *prefix,SqliteNetworkController *subsys) { Mutex::Lock _l(_lock); _subsystems[std::string(prefix)] = subsys; @@ -104,7 +104,7 @@ private: Node *const _node; std::string _uiStaticPath; std::set _authTokens; - std::map _subsystems; + std::map _subsystems; Mutex _lock; }; -- cgit v1.2.3