aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/lib/controller.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-09-14 14:07:30 +0000
committerMartin Willi <martin@strongswan.org>2007-09-14 14:07:30 +0000
commitc01f7bf989dedcc61e4e812fd57d6d73997cfd85 (patch)
treee50601b98d290e941b0ea2ab9ac1769dc6f9519a /src/manager/lib/controller.h
parent15a9d460c05ac73dfae41bc8a66b07f0c2a48328 (diff)
downloadstrongswan-c01f7bf989dedcc61e4e812fd57d6d73997cfd85.tar.bz2
strongswan-c01f7bf989dedcc61e4e812fd57d6d73997cfd85.tar.xz
added subnets of CHILD_SAs to xml interface
a first design of Managers IKE_SA list page
Diffstat (limited to 'src/manager/lib/controller.h')
-rw-r--r--src/manager/lib/controller.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/manager/lib/controller.h b/src/manager/lib/controller.h
index 92968d8a6..fe6177513 100644
--- a/src/manager/lib/controller.h
+++ b/src/manager/lib/controller.h
@@ -59,13 +59,24 @@ struct controller_t {
char* (*get_name)(controller_t *this);
/**
- * @brief Get the controllers handler function for an action name.
+ * @brief Handle a HTTP request for that controller.
*
- * @param name name of the action
- * @return controllers handler
+ * Request URLs are parsed in the form
+ * controller_name/p1/p2/p3/p4/p5 with a maximum of 5 parameters. Each
+ * parameter not found in the request URL is set to NULL.
+ *
+ * @param request HTTP request
+ * @param response HTTP response
+ * @param p1 first parameter
+ * @param p2 second parameter
+ * @param p3 third parameter
+ * @param p4 forth parameter
+ * @param p5 fifth parameter
+ * @return
*/
- controller_handler_t (*get_handler)(controller_t *this, char *name);
-
+ void (*handle)(controller_t *this, request_t *request, response_t *response,
+ char *a1, char *a2, char *a3, char *a4, char *a5);
+
/**
* @brief Destroy the controller instance.
*/