projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix direct UDP communciation with pre-relaying 1.1 nodes.
[tinc]
/
src
/
event.h
diff --git
a/src/event.h
b/src/event.h
index
d0129d0
..
0ff8e01
100644
(file)
--- a/
src/event.h
+++ b/
src/event.h
@@
-1,6
+1,6
@@
/*
event.h -- I/O, timeout and signal event handling
/*
event.h -- I/O, timeout and signal event handling
- Copyright (C) 2012 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2012
-2013
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-32,6
+32,9
@@
typedef void (*signal_cb_t)(void *data);
typedef struct io_t {
int fd;
int flags;
typedef struct io_t {
int fd;
int flags;
+#ifdef HAVE_MINGW
+ WSAEVENT event;
+#endif
io_cb_t cb;
void *data;
splay_node_t node;
io_cb_t cb;
void *data;
splay_node_t node;
@@
-54,6
+57,9
@@
typedef struct signal_t {
extern struct timeval now;
extern void io_add(io_t *io, io_cb_t cb, void *data, int fd, int flags);
extern struct timeval now;
extern void io_add(io_t *io, io_cb_t cb, void *data, int fd, int flags);
+#ifdef HAVE_MINGW
+extern void io_add_event(io_t *io, io_cb_t cb, void* data, WSAEVENT event);
+#endif
extern void io_del(io_t *io);
extern void io_set(io_t *io, int flags);
extern void io_del(io_t *io);
extern void io_set(io_t *io, int flags);