Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmxmlrpc / xmlrpc_int.h
blob3abb6d331720a7f92a75b7fb6f06b86084544129
1 /*============================================================================
2 xmlrpc_client_int.h
3 ==============================================================================
4 This header file defines the interface between modules inside
5 xmlrpc-c.
7 Use this in addition to xmlrpc.h, which defines the external
8 interface.
10 Copyright information is at the end of the file.
11 ============================================================================*/
14 #ifndef _XMLRPC_INT_H_
15 #define _XMLRPC_INT_H_ 1
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
22 struct _xmlrpc_value {
23 xmlrpc_type _type;
24 int _refcount;
26 /* Certain data types store their data directly in the xmlrpc_value. */
27 union {
28 xmlrpc_int32 i;
29 xmlrpc_bool b;
30 double d;
31 /* time_t t */
32 void *c_ptr;
33 } _value;
35 /* Other data types use a memory block. */
36 xmlrpc_mem_block _block;
38 #ifdef HAVE_UNICODE_WCHAR
39 /* We may need to convert our string data to a wchar_t string. */
40 xmlrpc_mem_block *_wcs_block;
41 #endif
44 typedef struct {
45 unsigned char key_hash;
46 xmlrpc_value *key;
47 xmlrpc_value *value;
48 } _struct_member;
51 struct _xmlrpc_registry {
52 int _introspection_enabled;
53 xmlrpc_value *_methods;
54 xmlrpc_value *_default_method;
55 xmlrpc_value *_preinvoke_method;
59 /* When we deallocate a pointer in a struct, we often replace it with
60 ** this and throw in a few assertions here and there. */
61 #define XMLRPC_BAD_POINTER ((void*) 0xDEADBEEF)
64 void
65 xmlrpc_traceXml(const char * const label,
66 const char * const xml,
67 unsigned int const xmlLength);
69 void
70 xmlrpc_destroyStruct(xmlrpc_value * const structP);
72 void
73 xmlrpc_destroyArrayContents(xmlrpc_value * const arrayP);
75 const char *
76 xmlrpc_makePrintable(const char * const input);
78 const char *
79 xmlrpc_makePrintableChar(char const input);
83 /* Copyright (C) 2001 by First Peer, Inc. All rights reserved.
85 ** Redistribution and use in source and binary forms, with or without
86 ** modification, are permitted provided that the following conditions
87 ** are met:
88 ** 1. Redistributions of source code must retain the above copyright
89 ** notice, this list of conditions and the following disclaimer.
90 ** 2. Redistributions in binary form must reproduce the above copyright
91 ** notice, this list of conditions and the following disclaimer in the
92 ** documentation and/or other materials provided with the distribution.
93 ** 3. The name of the author may not be used to endorse or promote products
94 ** derived from this software without specific prior written permission.
95 **
96 ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
97 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
98 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
99 ** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
100 ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
101 ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
102 ** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
103 ** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
104 ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
105 ** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
106 ** SUCH DAMAGE. */
108 #ifdef __cplusplus
110 #endif /* __cplusplus */
112 #endif