diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-26 00:37:40 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-26 00:37:40 +0200 |
commit | 94e3f46ef6c976f6bbd670555262ec6466314d8a (patch) | |
tree | 5fe76cefc2fb868b3f2be8d1b0cd8dfa47fe16ad /lib/libradsec-levent.h | |
parent | cd66f4d2661093d245a6ffbb35c17d5b5812e9a3 (diff) |
Example client crafting simple packet using freeradius-libradius.
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. */ |