summaryrefslogtreecommitdiff
path: root/node/NetworkController.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 12:28:43 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 12:28:43 -0700
commite09c1a1c11522c11c6ea81dcb1c52a4e8a2f5c6c (patch)
treeba6d0381aa472ec1811bd9f16627e10f48f2d203 /node/NetworkController.hpp
parentb104bb4762a07dcb0a950b33c7419b298c2b6267 (diff)
downloadinfinitytier-e09c1a1c11522c11c6ea81dcb1c52a4e8a2f5c6c.tar.gz
infinitytier-e09c1a1c11522c11c6ea81dcb1c52a4e8a2f5c6c.zip
Big refactor mostly builds. We now have a uniform backward compatible netconf.
Diffstat (limited to 'node/NetworkController.hpp')
-rw-r--r--node/NetworkController.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/node/NetworkController.hpp b/node/NetworkController.hpp
index 4ab6403a..b91ada1b 100644
--- a/node/NetworkController.hpp
+++ b/node/NetworkController.hpp
@@ -22,15 +22,15 @@
#include <stdint.h>
#include "Constants.hpp"
-#include "InetAddress.hpp"
-#include "Address.hpp"
-#include "Identity.hpp"
-#include "NetworkConfigRequestMetaData.hpp"
-#include "Buffer.hpp"
namespace ZeroTier {
class RuntimeEnvironment;
+class NetworkConfig;
+class Dictionary;
+class Identity;
+class Address;
+struct InetAddress;
/**
* Interface for network controller implementations
@@ -67,16 +67,16 @@ public:
* @param identity Originating peer ZeroTier identity
* @param nwid 64-bit network ID
* @param metaData Meta-data bundled with request (if any)
- * @param result Buffer to receive serialized network configuration data (any existing data in buffer is preserved)
- * @return Returns NETCONF_QUERY_OK if result dictionary is valid, or an error code on error
+ * @param nc NetworkConfig to fill with results
+ * @return Returns NETCONF_QUERY_OK if result 'nc' is valid, or an error code on error
*/
virtual NetworkController::ResultCode doNetworkConfigRequest(
const InetAddress &fromAddr,
const Identity &signingId,
const Identity &identity,
uint64_t nwid,
- const NetworkConfigRequestMetaData &metaData,
- Buffer<8194> &result) = 0;
+ const Dictionary &metaData,
+ NetworkConfig &nc) = 0;
};
} // namespace ZeroTier