mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Move more stuff into osdep/ -- node/ will not use threads directly.
This commit is contained in:
parent
e61a40a956
commit
647ce82b86
11 changed files with 8 additions and 17 deletions
|
@ -88,7 +88,7 @@ enum ZT1_ResultCode
|
||||||
/**
|
/**
|
||||||
* Status codes sent to status update callback when things happen
|
* Status codes sent to status update callback when things happen
|
||||||
*/
|
*/
|
||||||
enum ZT1_NodeStatusChangeCode
|
enum ZT1_NodeStatusCode
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Node is online
|
* Node is online
|
||||||
|
@ -512,7 +512,7 @@ typedef void (*ZT1_VirtualNetworkConfigCallback)(ZT1_Node *,uint64_t,const ZT1_V
|
||||||
*
|
*
|
||||||
* This is called whenever the node's status changes in some significant way.
|
* This is called whenever the node's status changes in some significant way.
|
||||||
*/
|
*/
|
||||||
typedef void (*ZT1_StatusCallback)(ZT1_Node *,enum ZT1_NodeStatusChangeCode);
|
typedef void (*ZT1_StatusCallback)(ZT1_Node *,enum ZT1_NodeStatusCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to get an object from the data store
|
* Function to get an object from the data store
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
#include "Multicaster.hpp"
|
#include "Multicaster.hpp"
|
||||||
#include "NetworkConfig.hpp"
|
#include "NetworkConfig.hpp"
|
||||||
#include "CertificateOfMembership.hpp"
|
#include "CertificateOfMembership.hpp"
|
||||||
#include "Thread.hpp"
|
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
||||||
|
@ -447,12 +446,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void destroy();
|
void destroy();
|
||||||
|
|
||||||
/**
|
|
||||||
* Thread main method; do not call elsewhere
|
|
||||||
*/
|
|
||||||
void threadMain()
|
|
||||||
throw();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void _CBhandleTapData(void *arg,const MAC &from,const MAC &to,unsigned int etherType,const Buffer<4096> &data);
|
static void _CBhandleTapData(void *arg,const MAC &from,const MAC &to,unsigned int etherType,const Buffer<4096> &data);
|
||||||
|
|
||||||
|
@ -495,8 +488,6 @@ private:
|
||||||
NETCONF_FAILURE_INIT_FAILED
|
NETCONF_FAILURE_INIT_FAILED
|
||||||
} _netconfFailure;
|
} _netconfFailure;
|
||||||
|
|
||||||
Thread _setupThread;
|
|
||||||
|
|
||||||
Mutex _lock;
|
Mutex _lock;
|
||||||
|
|
||||||
AtomicCounter __refCount;
|
AtomicCounter __refCount;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include "../node/EthernetTap.hpp"
|
#include "EthernetTap.hpp"
|
||||||
#include "../node/Thread.hpp"
|
#include "../node/Thread.hpp"
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "../node/EthernetTapFactory.hpp"
|
#include "EthernetTapFactory.hpp"
|
||||||
#include "../node/Mutex.hpp"
|
#include "../node/Mutex.hpp"
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
|
@ -34,10 +34,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include "Constants.hpp"
|
#include "../node/Constants.hpp"
|
||||||
#include "MAC.hpp"
|
#include "../node/MAC.hpp"
|
||||||
#include "InetAddress.hpp"
|
#include "../node/InetAddress.hpp"
|
||||||
#include "Buffer.hpp"
|
#include "../node/Buffer.hpp"
|
||||||
#include "MulticastGroup.hpp"
|
#include "MulticastGroup.hpp"
|
||||||
#include "NonCopyable.hpp"
|
#include "NonCopyable.hpp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue