1
/* Copyright (C) 2001 by Eric Kidd. All rights reserved.
3
** Redistribution and use in source and binary forms, with or without
4
** modification, are permitted provided that the following conditions
6
** 1. Redistributions of source code must retain the above copyright
7
** notice, this list of conditions and the following disclaimer.
8
** 2. Redistributions in binary form must reproduce the above copyright
9
** notice, this list of conditions and the following disclaimer in the
10
** documentation and/or other materials provided with the distribution.
11
** 3. The name of the author may not be used to endorse or promote products
12
** derived from this software without specific prior written permission.
14
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17
** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20
** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21
** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22
** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23
** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26
#ifndef _XMLRPC_CGI_H_
27
#define _XMLRPC_CGI_H_ 1
31
#endif /* __cplusplus */
34
/*=========================================================================
36
**=========================================================================
37
** A simple XML-RPC server based on the Common Gateway Interface.
40
#define XMLRPC_CGI_NO_FLAGS (0)
42
/* Initialize the CGI server library. */
44
xmlrpc_cgi_init (int flags);
46
/* Fetch the internal registry, if you happen to need it. */
47
extern xmlrpc_registry *
48
xmlrpc_cgi_registry (void);
50
/* Register a new method. */
52
xmlrpc_cgi_add_method (char *method_name,
56
/* As above, but provide documentation (see xmlrpc_registry_add_method_w_doc
57
** for more information). You should really use this one. */
59
xmlrpc_cgi_add_method_w_doc (char *method_name,
65
/* Parse the XML-RPC call, invoke the appropriate method, and send the
66
** response over the network. In future releases, we reserve the right to
67
** time out when reading data. For now, we rely on the webserver to blow us
70
xmlrpc_cgi_process_call (void);
72
/* Clean up any internal data structures before exiting. */
74
xmlrpc_cgi_cleanup (void);
79
#endif /* __cplusplus */
81
#endif /* _XMLRPC_CGI_H_ */