Fix masking of bits in serialised query
[xapian.git] / xapian-applications / omega / cgiparam.h
blob5fb96261ecd829c9625db676169726b5b2a9df0e
1 /* functions to deal with CGI parameters
3 * Copyright 1999,2000,2001 BrightStation PLC
4 * Copyright 2002,2007,2009 Olly Betts
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef OMEGA_INCLUDED_CGIPARAM_H
22 #define OMEGA_INCLUDED_CGIPARAM_H
24 #include <map>
25 #include <string>
27 typedef std::multimap<std::string, std::string>::const_iterator MCI;
29 /* decode the query from NAME=VALUE pairs given on the command line */
30 extern void decode_argv(char **argv);
32 /* decode the query from stdin as "NAME=VALUE" pairs */
33 extern void decode_test();
35 /* decode the query as a POST */
36 extern void decode_post();
38 /* decode the query as a GET */
39 extern void decode_get();
41 extern std::multimap<std::string, std::string> cgi_params;
43 #endif // OMEGA_INCLUDED_CGIPARAM_H