1 /*============================================================================
3 ==============================================================================
4 This header file defines the interface between modules inside
7 Use this in addition to xmlrpc.h, which defines the external
10 Copyright information is at the end of the file.
11 ============================================================================*/
14 #ifndef _XMLRPC_INT_H_
15 #define _XMLRPC_INT_H_ 1
19 #endif /* __cplusplus */
22 struct _xmlrpc_value
{
26 /* Certain data types store their data directly in the xmlrpc_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
;
45 unsigned char key_hash
;
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)
65 xmlrpc_traceXml(const char * const label
,
66 const char * const xml
,
67 unsigned int const xmlLength
);
70 xmlrpc_destroyStruct(xmlrpc_value
* const structP
);
73 xmlrpc_destroyArrayContents(xmlrpc_value
* const arrayP
);
76 xmlrpc_makePrintable(const char * const input
);
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
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.
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
110 #endif /* __cplusplus */