From 21300197afcabc90366454eaa34e67187c53d974 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 3 Oct 2010 16:24:57 +0200 Subject: WIP -- prepare for request objects. --- lib/include/radsec/request-impl.h | 10 ++++++++++ lib/include/radsec/request.h | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 lib/include/radsec/request-impl.h create mode 100644 lib/include/radsec/request.h (limited to 'lib/include/radsec') 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); -- cgit v1.1