diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-03 16:24:57 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-10-03 16:24:57 +0200 |
commit | 21300197afcabc90366454eaa34e67187c53d974 (patch) | |
tree | aa2b92a3e041335130994a0d3f6652f14983f634 /lib/include | |
parent | 81aa93c41def5b73bc5523de852c429355926e93 (diff) |
WIP -- prepare for request objects.
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/radsec/request-impl.h | 10 | ||||
-rw-r--r-- | lib/include/radsec/request.h | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/include/radsec/request-impl.h b/lib/include/radsec/request-impl.h new file mode 100644 index 0000000..339dfea --- /dev/null +++ b/lib/include/radsec/request-impl.h @@ -0,0 +1,10 @@ +/* See the file COPYING for licensing information. */ + +struct rs_request +{ + struct rs_connection *conn; + struct event *timer; + struct rs_packet *req; + struct rs_packet *resp; + struct rs_conn_callbacks saved_cb; +}; diff --git a/lib/include/radsec/request.h b/lib/include/radsec/request.h new file mode 100644 index 0000000..3827da5 --- /dev/null +++ b/lib/include/radsec/request.h @@ -0,0 +1,7 @@ +/* See the file COPYING for licensing information. */ + +struct rs_request; + +int rs_req_create(struct rs_connection *conn, struct rs_request **req_out); +void rs_req_destroy(struct rs_request *request); +int rs_req_send(struct rs_request *request, struct rs_packet *req, struct rs_packet **resp); |