node_state_sections.hpp 590 B

12345678910
  1. #pragma once
  2. #include <nlohmann/json.hpp>
  3. #include <string>
  4. #include <map>
  5. #include "node/InetAddress.hpp"
  6. void addNodeStateStatusJson(nlohmann::json& j, const ZeroTier::InetAddress& addr, std::map<std::string,std::string>& requestHeaders);
  7. void addNodeStateNetworksJson(nlohmann::json& j, const ZeroTier::InetAddress& addr, std::map<std::string,std::string>& requestHeaders);
  8. void addNodeStatePeersJson(nlohmann::json& j, const ZeroTier::InetAddress& addr, std::map<std::string,std::string>& requestHeaders);
  9. void addNodeStateLocalConfJson(nlohmann::json& j, const std::string& homeDir);