Remove legacy event system.
[tinc] / src / node.h
index 2ea9692..5b5cc25 100644 (file)
 
 #include "avl_tree.h"
 #include "connection.h"
-#include "event.h"
 #include "list.h"
 #include "subnet.h"
 
 typedef union node_status_t {
        struct {
-               int active:1;                           /* 1 if active.. */
+               int unused_active:1;                    /* 1 if active (not used for nodes) */
                int validkey:1;                         /* 1 if we currently have a valid key for him */
                int waitingforkey:1;                    /* 1 if we already sent out a request */
                int visited:1;                          /* 1 if this node has been visited by one of the graph algorithms */
@@ -80,7 +79,7 @@ typedef struct node_t {
        length_t minmtu;                        /* Probed minimum MTU */
        length_t maxmtu;                        /* Probed maximum MTU */
        int mtuprobes;                          /* Number of probes */
-       event_t *mtuevent;                      /* Probe event */
+       struct event mtuevent;                  /* Probe event */
 } node_t;
 
 extern struct node_t *myself;