Back to index

php5  5.3.10
xmlrpc_introspection_private.h
Go to the documentation of this file.
00001 /*
00002   This file is part of libXMLRPC - a C library for xml-encoded function calls.
00003 
00004   Author: Dan Libby (dan@libby.com)
00005   Epinions.com may be contacted at feedback@epinions-inc.com
00006 */
00007 
00008 /*  
00009   Copyright 2001 Dan Libby, Epinions, Inc. 
00010 
00011   Subject to the following 3 conditions, Epinions, Inc.  permits you, free 
00012   of charge, to (a) use, copy, distribute, modify, perform and display this 
00013   software and associated documentation files (the "Software"), and (b) 
00014   permit others to whom the Software is furnished to do so as well.  
00015 
00016   1) The above copyright notice and this permission notice shall be included 
00017   without modification in all copies or substantial portions of the 
00018   Software.  
00019 
00020   2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF 
00021   ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY 
00022   IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR 
00023   PURPOSE OR NONINFRINGEMENT.  
00024 
00025   3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, 
00026   SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT 
00027   OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING 
00028   NEGLIGENCE), EVEN IF EPINIONS, INC.  IS AWARE OF THE POSSIBILITY OF SUCH 
00029   DAMAGES.    
00030 
00031 */
00032 
00033 /* IMPORTANT!
00034  *
00035  * only non-public things should be in this file.  It is fine for any .c file
00036  * in xmlrpc/src to include it, but users of the public API should never
00037  * include it, and thus *.h files that are part of the public API should
00038  * never include it, or they would break if this file is not present.
00039  */
00040 
00041 
00042 #ifndef __XI_INTROSPECTION_PRIVATE_H
00043 /*
00044  * Avoid include redundancy.
00045  */
00046 #define __XI_INTROSPECTION_PRIVATE_H
00047 
00048 /*----------------------------------------------------------------------------
00049  * xmlrpc_introspection_private.h
00050  *
00051  * Purpose:
00052  *   define non-public introspection routines
00053  * Comments:
00054  */
00055 
00056 /*----------------------------------------------------------------------------
00057  * Constants
00058  */
00059 #define xi_token_default                    "default"
00060 #define xi_token_description                "description"
00061 #define xi_token_name                       "name"
00062 #define xi_token_optional                   "optional"
00063 #define xi_token_params                     "params"
00064 #define xi_token_purpose                    "purpose"
00065 #define xi_token_returns                    "returns"
00066 #define xi_token_signatures                 "signatures"
00067 #define xi_token_type                       "type"
00068 #define xi_token_version                    "version"
00069 #define xi_token_empty                      ""
00070 #define xi_token_system_describe_methods    "system.describeMethods"
00071 #define xi_token_system_list_methods        "system.listMethods"
00072 #define xi_token_system_method_help         "system.methodHelp"
00073 #define xi_token_system_method_signature    "system.methodSignature"
00074 
00075  
00076 /*----------------------------------------------------------------------------
00077  * Includes
00078  */
00079 
00080 /*----------------------------------------------------------------------------
00081  * Structures
00082  */
00083 typedef struct _doc_method {
00084    XMLRPC_IntrospectionCallback         method;
00085    int                                  b_called;
00086 } doc_method; 
00087  
00088 /*----------------------------------------------------------------------------
00089  * Globals
00090  */
00091 
00092 /*----------------------------------------------------------------------------
00093  * Functions
00094  */
00095 void xi_register_system_methods(XMLRPC_SERVER server);
00096  
00097 /*----------------------------------------------------------------------------
00098  * Macros
00099  */
00100  
00101 
00102 #endif /* __XI_INTROSPECTION_PRIVATE_H */
00103 
00104 
00105 
00106