You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
4.2 KiB

25 years ago
25 years ago
24 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 4 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2002 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.02 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/2_02.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Rasmus Lerdorf <rasmus@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_HYPERWAVE_H
  20. #define PHP_HYPERWAVE_H
  21. #ifdef PHP_WIN32
  22. #define PHP_HW_API __declspec(dllexport)
  23. #else
  24. #define PHP_HW_API
  25. #endif
  26. #if HYPERWAVE
  27. #ifndef DLEXPORT
  28. #define DLEXPORT
  29. #endif
  30. #ifdef ZTS
  31. #include "TSRM.h"
  32. #endif
  33. #include "hg_comm.h"
  34. extern zend_module_entry hw_module_entry;
  35. #define hw_module_ptr &hw_module_entry
  36. typedef struct {
  37. long default_link;
  38. long default_port;
  39. long num_links,num_persistent;
  40. long max_links,max_persistent;
  41. long allow_persistent;
  42. } zend_hw_globals;
  43. #ifdef ZTS
  44. # define HwSG(v) TSRMG(hw_globals_id, zend_hw_globals *, v)
  45. #else
  46. # define HwSG(v) (hw_globals.v)
  47. extern PHP_HW_API zend_hw_globals hw_globals;
  48. #endif
  49. /*extern hw_module php_hw_module;*/
  50. typedef struct {
  51. int size;
  52. char *data;
  53. char *attributes;
  54. char *bodytag;
  55. } hw_document;
  56. PHP_MINIT_FUNCTION(hw);
  57. PHP_MSHUTDOWN_FUNCTION(hw);
  58. PHP_MINFO_FUNCTION(hw);
  59. PHP_FUNCTION(hw_connect);
  60. PHP_FUNCTION(hw_pconnect);
  61. PHP_FUNCTION(hw_close);
  62. PHP_FUNCTION(hw_root);
  63. PHP_FUNCTION(hw_info);
  64. PHP_FUNCTION(hw_error);
  65. PHP_FUNCTION(hw_errormsg);
  66. PHP_FUNCTION(hw_mv);
  67. PHP_FUNCTION(hw_cp);
  68. PHP_FUNCTION(hw_deleteobject);
  69. PHP_FUNCTION(hw_changeobject);
  70. PHP_FUNCTION(hw_modifyobject);
  71. PHP_FUNCTION(hw_getparents);
  72. PHP_FUNCTION(hw_getparentsobj);
  73. PHP_FUNCTION(hw_children);
  74. PHP_FUNCTION(hw_childrenobj);
  75. PHP_FUNCTION(hw_getchildcoll);
  76. PHP_FUNCTION(hw_getchildcollobj);
  77. PHP_FUNCTION(hw_getobject);
  78. PHP_FUNCTION(hw_getandlock);
  79. PHP_FUNCTION(hw_unlock);
  80. PHP_FUNCTION(hw_gettext);
  81. PHP_FUNCTION(hw_edittext);
  82. PHP_FUNCTION(hw_getcgi);
  83. PHP_FUNCTION(hw_getremote);
  84. PHP_FUNCTION(hw_getremotechildren);
  85. PHP_FUNCTION(hw_pipedocument);
  86. PHP_FUNCTION(hw_pipecgi);
  87. PHP_FUNCTION(hw_insertdocument);
  88. PHP_FUNCTION(hw_docbyanchorobj);
  89. PHP_FUNCTION(hw_docbyanchor);
  90. PHP_FUNCTION(hw_getobjectbyquery);
  91. PHP_FUNCTION(hw_getobjectbyqueryobj);
  92. PHP_FUNCTION(hw_getobjectbyquerycoll);
  93. PHP_FUNCTION(hw_getobjectbyquerycollobj);
  94. PHP_FUNCTION(hw_getobjectbyftquery);
  95. PHP_FUNCTION(hw_getobjectbyftqueryobj);
  96. PHP_FUNCTION(hw_getobjectbyftquerycoll);
  97. PHP_FUNCTION(hw_getobjectbyftquerycollobj);
  98. PHP_FUNCTION(hw_getchilddoccoll);
  99. PHP_FUNCTION(hw_getchilddoccollobj);
  100. PHP_FUNCTION(hw_getanchors);
  101. PHP_FUNCTION(hw_getanchorsobj);
  102. PHP_FUNCTION(hw_getusername);
  103. PHP_FUNCTION(hw_setlinkroot);
  104. PHP_FUNCTION(hw_inscoll);
  105. PHP_FUNCTION(hw_incollections);
  106. PHP_FUNCTION(hw_insertobject);
  107. PHP_FUNCTION(hw_insdoc);
  108. PHP_FUNCTION(hw_identify);
  109. PHP_FUNCTION(hw_free_document);
  110. PHP_FUNCTION(hw_new_document);
  111. PHP_FUNCTION(hw_new_document_from_file);
  112. PHP_FUNCTION(hw_output_document);
  113. PHP_FUNCTION(hw_document_size);
  114. PHP_FUNCTION(hw_document_attributes);
  115. PHP_FUNCTION(hw_document_bodytag);
  116. PHP_FUNCTION(hw_document_content);
  117. PHP_FUNCTION(hw_document_setcontent);
  118. PHP_FUNCTION(hw_objrec2array);
  119. PHP_FUNCTION(hw_array2objrec);
  120. PHP_FUNCTION(hw_connection_info);
  121. PHP_FUNCTION(hw_getsrcbydestobj);
  122. PHP_FUNCTION(hw_insertanchors);
  123. PHP_FUNCTION(hw_getrellink);
  124. PHP_FUNCTION(hw_dummy);
  125. PHP_FUNCTION(hw_who);
  126. PHP_FUNCTION(hw_stat);
  127. PHP_FUNCTION(hw_mapid);
  128. #else
  129. #define hw_module_ptr NULL
  130. #endif /* HYPERWAVE */
  131. #define phpext_hyperwave_ptr hw_module_ptr
  132. #endif /* PHP_HYPERWAVE_H */