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