2 This file is part of libXMLRPC - a C library for xml-encoded function calls.
4 Author: Dan Libby (dan@libby.com)
5 Epinions.com may be contacted at feedback@epinions-inc.com
9 Copyright 2000 Epinions, Inc.
11 Subject to the following 3 conditions, Epinions, Inc. permits you, free
12 of charge, to (a) use, copy, distribute, modify, perform and display this
13 software and associated documentation files (the "Software"), and (b)
14 permit others to whom the Software is furnished to do so as well.
16 1) The above copyright notice and this permission notice shall be included
17 without modification in all copies or substantial portions of the
20 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
21 ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
22 IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 PURPOSE OR NONINFRINGEMENT.
25 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
27 OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
28 NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
35 * only public (official API) things should be in this file. Anything else
36 * should go in <group>_private.h, or in the appropriate .c file.
40 #ifndef __XI_INTROSPECTION_H
42 * Avoid include redundancy.
44 #define __XI_INTROSPECTION_H
46 /*----------------------------------------------------------------------------
47 * xmlrpc_introspection.h
50 * define public introspection API
54 /*----------------------------------------------------------------------------
57 #define xi_token_params "params"
58 #define xi_token_returns "returns"
59 #define xi_token_related "related"
60 #define xi_token_sub "sub"
63 /*----------------------------------------------------------------------------
67 /*----------------------------------------------------------------------------
71 /****d* VALUE/XMLRPC_IntrospectionCallback
73 * XMLRPC_IntrospectionCallback
75 * Function prototype for lazy documentation generation (not generated until requested).
78 typedef void (*XMLRPC_IntrospectionCallback)(XMLRPC_SERVER server, void* userData);
82 /*----------------------------------------------------------------------------
86 /*----------------------------------------------------------------------------
89 XMLRPC_VALUE XMLRPC_IntrospectionCreateDescription(const char* xml, XMLRPC_ERROR error);
90 int XMLRPC_ServerAddIntrospectionData(XMLRPC_SERVER server, XMLRPC_VALUE desc);
91 int XMLRPC_ServerRegisterIntrospectionCallback(XMLRPC_SERVER server, XMLRPC_IntrospectionCallback cb);
93 /*----------------------------------------------------------------------------
98 #endif /* __XI_INTROSPECTION_H */