1
0

xmlrpc_server_abyss_int.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*============================================================================
  2. xmlrpc_server_abyss_int.h
  3. ==============================================================================
  4. This header file defines the interface between client modules inside
  5. xmlrpc-c.
  6. Use this in addition to xmlrpc_server_abyss.h, which defines the external
  7. interface.
  8. Copyright information is at the end of the file.
  9. ============================================================================*/
  10. #ifndef _XMLRPC_SERVER_ABYSS_INT_H_
  11. #define _XMLRPC_SERVER_ABYSS_INT_H_ 1
  12. #include "abyss.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif /* __cplusplus */
  16. /*=========================================================================
  17. ** Abyss Content Handlers
  18. **=========================================================================
  19. ** These are Abyss handlers. You install them into an Abyss server.
  20. */
  21. /* Handler for XML-RPC requests. Install this using ServerAddHandler
  22. as the handler for all requests to /RPC2. This handler assumes that
  23. it can read from the method registry without running into race
  24. conditions or anything nasty like that.
  25. */
  26. extern xmlrpc_bool
  27. xmlrpc_server_abyss_rpc2_handler (TSession *r);
  28. /* A default handler. Install this as the default handler with
  29. ServerDefaultHandler if you don't want to serve any HTML or
  30. GIFs from your htdocs directory.
  31. This handler always returns a "404 Not Found".
  32. */
  33. extern xmlrpc_bool
  34. xmlrpc_server_abyss_default_handler (TSession *r);
  35. /* Copyright (C) 2001 by First Peer, Inc. All rights reserved.
  36. **
  37. ** Redistribution and use in source and binary forms, with or without
  38. ** modification, are permitted provided that the following conditions
  39. ** are met:
  40. ** 1. Redistributions of source code must retain the above copyright
  41. ** notice, this list of conditions and the following disclaimer.
  42. ** 2. Redistributions in binary form must reproduce the above copyright
  43. ** notice, this list of conditions and the following disclaimer in the
  44. ** documentation and/or other materials provided with the distribution.
  45. ** 3. The name of the author may not be used to endorse or promote products
  46. ** derived from this software without specific prior written permission.
  47. **
  48. ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  49. ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  50. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  51. ** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  52. ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  53. ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  54. ** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  55. ** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  56. ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  57. ** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  58. ** SUCH DAMAGE. */
  59. #ifdef __cplusplus
  60. }
  61. #endif /* __cplusplus */
  62. #endif