X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fevent.h;h=b823c725cbe3053168bad510a3ba0fa0b9173a93;hb=708825e4b229a4a1e182e682e2d1021fa2765396;hp=b2dc61f85783386375ea2b89934ebc08689efb6a;hpb=c217d214f4f071c235bc7c463a1da6124e2570a6;p=tinc diff --git a/src/event.h b/src/event.h index b2dc61f8..b823c725 100644 --- a/src/event.h +++ b/src/event.h @@ -13,21 +13,21 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __TINC_EVENT_H__ #define __TINC_EVENT_H__ -#include "avl_tree.h" +#include "splay_tree.h" -extern avl_tree_t *event_tree; +extern splay_tree_t *event_tree; typedef void (*event_handler_t)(void *); -typedef struct { +typedef struct event { time_t time; int id; event_handler_t handler;