diff options
Diffstat (limited to 'lib/libradsec-levent.h')
-rw-r--r-- | lib/libradsec-levent.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/libradsec-levent.h b/lib/libradsec-levent.h index 4189dfc..3caa4ad 100644 --- a/lib/libradsec-levent.h +++ b/lib/libradsec-levent.h @@ -1,7 +1,7 @@ /** @file libradsec-levent.h @brief API for libradsec-libevent. */ -/* FIXME: License blurb goes here. */ +/* See the file COPYING for licensing information. */ #include <sys/socket.h> #include "libradsec.h" @@ -12,24 +12,6 @@ struct rs_connection { 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, - void *user_data); -typedef void (*rs_conn_packet_sent_cb)(void *user_data); - -/** Connection callbacks. */ -struct rs_conn_callbacks { - /** Callback invoked when the connection has been established. */ - rs_conn_connected_cb connected_cb; - /** Callback invoked when the connection has been torn down. */ - rs_conn_disconnected_cb disconnected_cb; - /** Callback invoked when a packet was received. */ - rs_conn_packet_received_cb received_cb; - /** Callback invoked when a packet was successfully sent. */ - rs_conn_packet_sent_cb sent_cb; -}; - /* Function prototypes. */ |