summaryrefslogtreecommitdiff
path: root/lib/include/radsec
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-03 16:24:57 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-03 16:24:57 +0200
commit21300197afcabc90366454eaa34e67187c53d974 (patch)
treeaa2b92a3e041335130994a0d3f6652f14983f634 /lib/include/radsec
parent81aa93c41def5b73bc5523de852c429355926e93 (diff)
WIP -- prepare for request objects.
Diffstat (limited to 'lib/include/radsec')
-rw-r--r--lib/include/radsec/request-impl.h10
-rw-r--r--lib/include/radsec/request.h7
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);