xmlrpc_introspection_private.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. This file is part of libXMLRPC - a C library for xml-encoded function calls.
  3. Author: Dan Libby (dan@libby.com)
  4. Epinions.com may be contacted at feedback@epinions-inc.com
  5. */
  6. /*
  7. Copyright 2001 Dan Libby, Epinions, Inc.
  8. Subject to the following 3 conditions, Epinions, Inc. permits you, free
  9. of charge, to (a) use, copy, distribute, modify, perform and display this
  10. software and associated documentation files (the "Software"), and (b)
  11. permit others to whom the Software is furnished to do so as well.
  12. 1) The above copyright notice and this permission notice shall be included
  13. without modification in all copies or substantial portions of the
  14. Software.
  15. 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
  16. ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
  17. IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  18. PURPOSE OR NONINFRINGEMENT.
  19. 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
  20. SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
  21. OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
  22. NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
  23. DAMAGES.
  24. */
  25. /* IMPORTANT!
  26. *
  27. * only non-public things should be in this file. It is fine for any .c file
  28. * in xmlrpc/src to include it, but users of the public API should never
  29. * include it, and thus *.h files that are part of the public API should
  30. * never include it, or they would break if this file is not present.
  31. */
  32. #ifndef __XI_INTROSPECTION_PRIVATE_H
  33. /*
  34. * Avoid include redundancy.
  35. */
  36. #define __XI_INTROSPECTION_PRIVATE_H
  37. /*----------------------------------------------------------------------------
  38. * xmlrpc_introspection_private.h
  39. *
  40. * Purpose:
  41. * define non-public introspection routines
  42. * Comments:
  43. */
  44. /*----------------------------------------------------------------------------
  45. * Constants
  46. */
  47. #define xi_token_default "default"
  48. #define xi_token_description "description"
  49. #define xi_token_name "name"
  50. #define xi_token_optional "optional"
  51. #define xi_token_params "params"
  52. #define xi_token_purpose "purpose"
  53. #define xi_token_returns "returns"
  54. #define xi_token_signatures "signatures"
  55. #define xi_token_type "type"
  56. #define xi_token_version "version"
  57. #define xi_token_empty ""
  58. #define xi_token_system_describe_methods "system.describeMethods"
  59. #define xi_token_system_list_methods "system.listMethods"
  60. #define xi_token_system_method_help "system.methodHelp"
  61. #define xi_token_system_method_signature "system.methodSignature"
  62. /*----------------------------------------------------------------------------
  63. * Includes
  64. */
  65. /*----------------------------------------------------------------------------
  66. * Structures
  67. */
  68. typedef struct _doc_method {
  69. XMLRPC_IntrospectionCallback method;
  70. int b_called;
  71. } doc_method;
  72. /*----------------------------------------------------------------------------
  73. * Globals
  74. */
  75. /*----------------------------------------------------------------------------
  76. * Functions
  77. */
  78. void xi_register_system_methods(XMLRPC_SERVER server);
  79. /*----------------------------------------------------------------------------
  80. * Macros
  81. */
  82. #endif /* __XI_INTROSPECTION_PRIVATE_H */