aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/controller/gateway_controller.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-07-17 11:50:45 +0200
committerMartin Willi <martin@revosec.ch>2013-07-18 12:24:38 +0200
commit890f20989f0535bb2af761821a3682c957bfeff7 (patch)
tree14e93f38b02dafd7255eb70b715ecf319214b1ee /src/manager/controller/gateway_controller.c
parent569d114de8cf8c35917e8c8720751c3ca32f9d47 (diff)
downloadstrongswan-890f20989f0535bb2af761821a3682c957bfeff7.tar.bz2
strongswan-890f20989f0535bb2af761821a3682c957bfeff7.tar.xz
libfast: add a fast_ prefix to all classes, avoiding namespace clashes
Diffstat (limited to 'src/manager/controller/gateway_controller.c')
-rw-r--r--src/manager/controller/gateway_controller.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/manager/controller/gateway_controller.c b/src/manager/controller/gateway_controller.c
index 39d344502..6c0257980 100644
--- a/src/manager/controller/gateway_controller.c
+++ b/src/manager/controller/gateway_controller.c
@@ -39,7 +39,7 @@ struct private_gateway_controller_t {
};
-static void list(private_gateway_controller_t *this, request_t *request)
+static void list(private_gateway_controller_t *this, fast_request_t *request)
{
enumerator_t *enumerator;
char *name, *address;
@@ -66,7 +66,7 @@ static void list(private_gateway_controller_t *this, request_t *request)
request->render(request, "templates/gateway/list.cs");
}
-static void _select(private_gateway_controller_t *this, request_t *request)
+static void _select(private_gateway_controller_t *this, fast_request_t *request)
{
char *id;
@@ -82,14 +82,14 @@ static void _select(private_gateway_controller_t *this, request_t *request)
request->redirect(request, "gateway/list");
}
-METHOD(controller_t, get_name, char*,
+METHOD(fast_controller_t, get_name, char*,
private_gateway_controller_t *this)
{
return "gateway";
}
-METHOD(controller_t, handle, void,
- private_gateway_controller_t *this, request_t *request, char *action,
+METHOD(fast_controller_t, handle, void,
+ private_gateway_controller_t *this, fast_request_t *request, char *action,
char *p2, char *p3, char *p4, char *p5)
{
if (!this->manager->logged_in(this->manager))
@@ -110,7 +110,7 @@ METHOD(controller_t, handle, void,
request->redirect(request, "gateway/list");
}
-METHOD(controller_t, destroy, void,
+METHOD(fast_controller_t, destroy, void,
private_gateway_controller_t *this)
{
free(this);
@@ -119,7 +119,8 @@ METHOD(controller_t, destroy, void,
/*
* see header file
*/
-controller_t *gateway_controller_create(context_t *context, void *param)
+fast_controller_t *gateway_controller_create(fast_context_t *context,
+ void *param)
{
private_gateway_controller_t *this;
@@ -136,4 +137,3 @@ controller_t *gateway_controller_create(context_t *context, void *param)
return &this->public.controller;
}
-