From c01f7bf989dedcc61e4e812fd57d6d73997cfd85 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 14 Sep 2007 14:07:30 +0000 Subject: added subnets of CHILD_SAs to xml interface a first design of Managers IKE_SA list page --- src/manager/lib/controller.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/manager/lib/controller.h') 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. */ -- cgit v1.2.3