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.

152 lines
4.3 KiB

27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP version 4.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997, 1998, 1999, 2000 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. | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
  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. int le_socketp, le_psocketp, le_document;
  43. } zend_hw_globals;
  44. #ifdef ZTS
  45. # define HwSLS_D zend_hw_globals *hw_globals
  46. # define HwSLS_DC , HwSLS_D
  47. # define HwSLS_C hw_globals
  48. # define HwSLS_CC , HwSLS_C
  49. # define HwSG(v) (hw_globals->v)
  50. # define HwSLS_FETCH() zend_hw_globals *hw_globals = ts_resource(hw_globals_id)
  51. #else
  52. # define HwSLS_D
  53. # define HwSLS_DC
  54. # define HwSLS_C
  55. # define HwSLS_CC
  56. # define HwSG(v) (hw_globals.v)
  57. # define HwSLS_FETCH()
  58. extern PHP_HW_API zend_hw_globals hw_globals;
  59. #endif
  60. /*extern hw_module php_hw_module;*/
  61. typedef struct {
  62. int size;
  63. char *data;
  64. char *attributes;
  65. char *bodytag;
  66. } hw_document;
  67. extern PHP_MINIT_FUNCTION(hw);
  68. extern PHP_MSHUTDOWN_FUNCTION(hw);
  69. PHP_MINFO_FUNCTION(hw);
  70. PHP_FUNCTION(hw_connect);
  71. PHP_FUNCTION(hw_pconnect);
  72. PHP_FUNCTION(hw_close);
  73. PHP_FUNCTION(hw_root);
  74. PHP_FUNCTION(hw_info);
  75. PHP_FUNCTION(hw_error);
  76. PHP_FUNCTION(hw_errormsg);
  77. PHP_FUNCTION(hw_mv);
  78. PHP_FUNCTION(hw_cp);
  79. PHP_FUNCTION(hw_deleteobject);
  80. PHP_FUNCTION(hw_changeobject);
  81. PHP_FUNCTION(hw_modifyobject);
  82. PHP_FUNCTION(hw_getparents);
  83. PHP_FUNCTION(hw_getparentsobj);
  84. PHP_FUNCTION(hw_children);
  85. PHP_FUNCTION(hw_childrenobj);
  86. PHP_FUNCTION(hw_getchildcoll);
  87. PHP_FUNCTION(hw_getchildcollobj);
  88. PHP_FUNCTION(hw_getobject);
  89. PHP_FUNCTION(hw_getandlock);
  90. PHP_FUNCTION(hw_unlock);
  91. PHP_FUNCTION(hw_gettext);
  92. PHP_FUNCTION(hw_edittext);
  93. PHP_FUNCTION(hw_getcgi);
  94. PHP_FUNCTION(hw_getremote);
  95. PHP_FUNCTION(hw_getremotechildren);
  96. PHP_FUNCTION(hw_pipedocument);
  97. PHP_FUNCTION(hw_pipecgi);
  98. PHP_FUNCTION(hw_insertdocument);
  99. PHP_FUNCTION(hw_docbyanchorobj);
  100. PHP_FUNCTION(hw_docbyanchor);
  101. PHP_FUNCTION(hw_getobjectbyquery);
  102. PHP_FUNCTION(hw_getobjectbyqueryobj);
  103. PHP_FUNCTION(hw_getobjectbyquerycoll);
  104. PHP_FUNCTION(hw_getobjectbyquerycollobj);
  105. PHP_FUNCTION(hw_getchilddoccoll);
  106. PHP_FUNCTION(hw_getchilddoccollobj);
  107. PHP_FUNCTION(hw_getanchors);
  108. PHP_FUNCTION(hw_getanchorsobj);
  109. PHP_FUNCTION(hw_getusername);
  110. PHP_FUNCTION(hw_setlinkroot);
  111. PHP_FUNCTION(hw_inscoll);
  112. PHP_FUNCTION(hw_incollections);
  113. PHP_FUNCTION(hw_insertobject);
  114. PHP_FUNCTION(hw_insdoc);
  115. PHP_FUNCTION(hw_identify);
  116. PHP_FUNCTION(hw_free_document);
  117. PHP_FUNCTION(hw_new_document);
  118. PHP_FUNCTION(hw_output_document);
  119. PHP_FUNCTION(hw_document_size);
  120. PHP_FUNCTION(hw_document_attributes);
  121. PHP_FUNCTION(hw_document_bodytag);
  122. PHP_FUNCTION(hw_document_content);
  123. PHP_FUNCTION(hw_document_setcontent);
  124. PHP_FUNCTION(hw_objrec2array);
  125. PHP_FUNCTION(hw_array2objrec);
  126. PHP_FUNCTION(hw_connection_info);
  127. PHP_FUNCTION(hw_getsrcbydestobj);
  128. PHP_FUNCTION(hw_getrellink);
  129. PHP_FUNCTION(hw_dummy);
  130. PHP_FUNCTION(hw_who);
  131. PHP_FUNCTION(hw_stat);
  132. PHP_FUNCTION(hw_mapid);
  133. #else
  134. #define hw_module_ptr NULL
  135. #endif /* HYPERWAVE */
  136. #define phpext_hyperwave_ptr hw_module_ptr
  137. #endif /* PHP_HYPERWAVE_H */