summaryrefslogtreecommitdiff
path: root/lib/libradsec-levent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libradsec-levent.h')
-rw-r--r--lib/libradsec-levent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libradsec-levent.h b/lib/libradsec-levent.h
index 17e089a..f79816c 100644
--- a/lib/libradsec-levent.h
+++ b/lib/libradsec-levent.h
@@ -1,10 +1,17 @@
-/** @file libradsec-libevent.h
+/** @file libradsec-levent.h
@brief API for libradsec-libevent. */
/* FIXME: License blurb goes here. */
+#include <sys/socket.h>
#include "libradsec.h"
+struct rs_connection {
+ struct rs_config *conf;
+ struct sockaddr_storage addr;
+ char open_flag;
+};
+
typedef void (*rs_conn_connected_cb)(void *user_data /* FIXME: peer? */);
typedef void (*rs_conn_disconnected_cb)(void *user_data /* FIXME: reason? */);
typedef void (*rs_conn_packet_received_cb)(const struct rs_packet *packet,