mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-11 13:09:55 +00:00
cleanup
This commit is contained in:
parent
8639538299
commit
a0f8685453
5
one.cpp
5
one.cpp
@ -30,7 +30,10 @@
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "service/One.hpp"
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "service/OneService.hpp"
|
||||
|
||||
using namespace ZeroTier;
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include "ControlPlane.hpp"
|
||||
#include "One.hpp"
|
||||
#include "OneService.hpp"
|
||||
|
||||
#include "../version.h"
|
||||
#include "../include/ZeroTierOne.h"
|
||||
@ -196,7 +196,7 @@ static void _jsonAppend(std::string &buf,const ZT1_Peer *peer)
|
||||
buf.append(json);
|
||||
}
|
||||
|
||||
ControlPlane::ControlPlane(One *svc,Node *n) :
|
||||
ControlPlane::ControlPlane(OneService *svc,Node *n) :
|
||||
_svc(svc),
|
||||
_node(n)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
class One;
|
||||
class OneService;
|
||||
class Node;
|
||||
struct InetAddress;
|
||||
|
||||
@ -46,7 +46,7 @@ struct InetAddress;
|
||||
class ControlPlane
|
||||
{
|
||||
public:
|
||||
ControlPlane(One *svc,Node *n);
|
||||
ControlPlane(OneService *svc,Node *n);
|
||||
~ControlPlane();
|
||||
|
||||
/**
|
||||
@ -71,7 +71,7 @@ public:
|
||||
std::string &responseContentType);
|
||||
|
||||
private:
|
||||
One *const _svc;
|
||||
OneService *const _svc;
|
||||
Node *const _node;
|
||||
std::set<std::string> _authTokens;
|
||||
};
|
||||
|
@ -130,8 +130,8 @@ protected:
|
||||
OneService() {}
|
||||
|
||||
private:
|
||||
OneService(const One &one) {}
|
||||
inline One &operator=(const One &one) { return *this; }
|
||||
OneService(const OneService &one) {}
|
||||
inline OneService &operator=(const OneService &one) { return *this; }
|
||||
};
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
Loading…
x
Reference in New Issue
Block a user