From fb827a274b0a7a206e1873b4e30658ebf677df70 Mon Sep 17 00:00:00 2001 From: "roberto@debian64" Date: Thu, 2 Feb 2012 10:29:31 +0100 Subject: [PATCH] started porting rack plugin to the new options api --- plugins/rack/rack_plugin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/rack/rack_plugin.c b/plugins/rack/rack_plugin.c index ea9788a4..ecf11b70 100644 --- a/plugins/rack/rack_plugin.c +++ b/plugins/rack/rack_plugin.c @@ -4,8 +4,9 @@ extern struct uwsgi_server uwsgi; struct uwsgi_rack ur; -struct option uwsgi_rack_options[] = { +struct uwsgi_option uwsgi_rack_options[] = { +/* {"rails", required_argument, 0, LONG_ARGS_RAILS}, {"rack", required_argument, 0, LONG_ARGS_RACK}, {"ruby-gc-freq", required_argument, 0, LONG_ARGS_RUBY_GC_FREQ}, @@ -16,8 +17,9 @@ struct option uwsgi_rack_options[] = { {"rubyrequire", required_argument, 0, LONG_ARGS_RUBY_REQUIRE}, {"require", required_argument, 0, LONG_ARGS_RUBY_REQUIRE}, {"rbshell", optional_argument, 0, LONG_ARGS_RUBY_SHELL}, +*/ - {0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0 ,0}, }; @@ -1036,7 +1038,7 @@ struct uwsgi_plugin rack_plugin = { .modifier1 = 7, .init = uwsgi_rack_init, .options = uwsgi_rack_options, - .manage_opt = uwsgi_rack_manage_options, + .request = uwsgi_rack_request, .after_request = uwsgi_rack_after_request,