~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Utilities/cmxmlrpc/xmlrpc_cgi.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2001 by Eric Kidd. All rights reserved.
2
 
**
3
 
** Redistribution and use in source and binary forms, with or without
4
 
** modification, are permitted provided that the following conditions
5
 
** are met:
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. 
13
 
**  
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
24
 
** SUCH DAMAGE. */
25
 
 
26
 
#ifndef  _XMLRPC_CGI_H_
27
 
#define  _XMLRPC_CGI_H_ 1
28
 
 
29
 
#ifdef __cplusplus
30
 
extern "C" {
31
 
#endif /* __cplusplus */
32
 
 
33
 
 
34
 
/*=========================================================================
35
 
**  XML-RPC CGI Server
36
 
**=========================================================================
37
 
**  A simple XML-RPC server based on the Common Gateway Interface.
38
 
*/
39
 
 
40
 
#define XMLRPC_CGI_NO_FLAGS (0)
41
 
 
42
 
/* Initialize the CGI server library. */
43
 
extern void
44
 
xmlrpc_cgi_init (int flags);
45
 
 
46
 
/* Fetch the internal registry, if you happen to need it. */
47
 
extern xmlrpc_registry *
48
 
xmlrpc_cgi_registry (void);
49
 
 
50
 
/* Register a new method. */
51
 
extern void
52
 
xmlrpc_cgi_add_method (char *method_name,
53
 
                       xmlrpc_method method,
54
 
                       void *user_data);
55
 
 
56
 
/* As above, but provide documentation (see xmlrpc_registry_add_method_w_doc
57
 
** for more information). You should really use this one. */
58
 
extern void
59
 
xmlrpc_cgi_add_method_w_doc (char *method_name,
60
 
                             xmlrpc_method method,
61
 
                             void *user_data,
62
 
                             char *signature,
63
 
                             char *help);
64
 
 
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
68
 
** away. */
69
 
extern void
70
 
xmlrpc_cgi_process_call (void);
71
 
 
72
 
/* Clean up any internal data structures before exiting. */
73
 
extern void
74
 
xmlrpc_cgi_cleanup (void);
75
 
 
76
 
 
77
 
#ifdef __cplusplus
78
 
}
79
 
#endif /* __cplusplus */
80
 
 
81
 
#endif /* _XMLRPC_CGI_H_ */