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.

165 lines
4.8 KiB

27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP HTML Embedded Scripting Language Version 3.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
  6. +----------------------------------------------------------------------+
  7. | This program is free software; you can redistribute it and/or modify |
  8. | it under the terms of the GNU General Public License as published by |
  9. | the Free Software Foundation; either version 2 of the License, or |
  10. | (at your option) any later version. |
  11. | |
  12. | This program is distributed in the hope that it will be useful, |
  13. | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  14. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  15. | GNU General Public License for more details. |
  16. | |
  17. | You should have received a copy of the GNU General Public License |
  18. | along with this program; if not, write to the Free Software |
  19. | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
  20. +----------------------------------------------------------------------+
  21. | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
  22. +----------------------------------------------------------------------+
  23. */
  24. /* $Id$ */
  25. #ifndef _HW_H
  26. #define _HW_H
  27. #if COMPILE_DL
  28. #undef HYPERWAVE
  29. #define HYPERWAVE 1
  30. #endif
  31. #if WIN32||WINNT
  32. #define PHP_HW_API __declspec(dllexport)
  33. #else
  34. #define PHP_HW_API
  35. #endif
  36. #if HYPERWAVE
  37. #ifndef DLEXPORT
  38. #define DLEXPORT
  39. #endif
  40. #ifdef ZTS
  41. #include "TSRM.h"
  42. #endif
  43. #include "hg_comm.h"
  44. extern php3_module_entry hw_module_entry;
  45. #define hw_module_ptr &hw_module_entry
  46. typedef struct {
  47. long default_link;
  48. long default_port;
  49. long num_links,num_persistent;
  50. long max_links,max_persistent;
  51. long allow_persistent;
  52. int le_socketp, le_psocketp, le_document;
  53. } php_hw_globals;
  54. #ifdef ZTS
  55. # define HwSLS_D php_hw_globals *hw_globals
  56. # define HwSLS_DC , HwSLS_D
  57. # define HwSLS_C hw_globals
  58. # define HwSLS_CC , HwSLS_C
  59. # define HwSG(v) (hw_globals->v)
  60. # define HwSLS_FETCH() php_hw_globals *hw_globals = ts_resource(hw_globals_id)
  61. #else
  62. # define HwSLS_D
  63. # define HwSLS_DC
  64. # define HwSLS_C
  65. # define HwSLS_CC
  66. # define HwSG(v) (hw_globals.v)
  67. # define HwSLS_FETCH()
  68. extern PHP_HW_API php_hw_globals hw_globals;
  69. #endif
  70. //extern hw_module php3_hw_module;
  71. typedef struct {
  72. int size;
  73. char *data;
  74. char *attributes;
  75. char *bodytag;
  76. } hw_document;
  77. extern hw_connection php3_hw_connection;
  78. extern PHP_MINIT_FUNCTION(hw);
  79. extern PHP_MSHUTDOWN_FUNCTION(hw);
  80. PHP_MINFO_FUNCTION(hw);
  81. PHP_FUNCTION(hw_connect);
  82. PHP_FUNCTION(hw_pconnect);
  83. PHP_FUNCTION(hw_close);
  84. PHP_FUNCTION(hw_root);
  85. PHP_FUNCTION(hw_info);
  86. PHP_FUNCTION(hw_error);
  87. PHP_FUNCTION(hw_errormsg);
  88. PHP_FUNCTION(hw_mv);
  89. PHP_FUNCTION(hw_cp);
  90. PHP_FUNCTION(hw_deleteobject);
  91. PHP_FUNCTION(hw_changeobject);
  92. PHP_FUNCTION(hw_modifyobject);
  93. PHP_FUNCTION(hw_getparents);
  94. PHP_FUNCTION(hw_getparentsobj);
  95. PHP_FUNCTION(hw_children);
  96. PHP_FUNCTION(hw_childrenobj);
  97. PHP_FUNCTION(hw_getchildcoll);
  98. PHP_FUNCTION(hw_getchildcollobj);
  99. PHP_FUNCTION(hw_getobject);
  100. PHP_FUNCTION(hw_getandlock);
  101. PHP_FUNCTION(hw_unlock);
  102. PHP_FUNCTION(hw_gettext);
  103. PHP_FUNCTION(hw_edittext);
  104. PHP_FUNCTION(hw_getcgi);
  105. PHP_FUNCTION(hw_getremote);
  106. PHP_FUNCTION(hw_getremotechildren);
  107. PHP_FUNCTION(hw_pipedocument);
  108. PHP_FUNCTION(hw_pipecgi);
  109. PHP_FUNCTION(hw_insertdocument);
  110. PHP_FUNCTION(hw_docbyanchorobj);
  111. PHP_FUNCTION(hw_docbyanchor);
  112. PHP_FUNCTION(hw_getobjectbyquery);
  113. PHP_FUNCTION(hw_getobjectbyqueryobj);
  114. PHP_FUNCTION(hw_getobjectbyquerycoll);
  115. PHP_FUNCTION(hw_getobjectbyquerycollobj);
  116. PHP_FUNCTION(hw_getchilddoccoll);
  117. PHP_FUNCTION(hw_getchilddoccollobj);
  118. PHP_FUNCTION(hw_getanchors);
  119. PHP_FUNCTION(hw_getanchorsobj);
  120. PHP_FUNCTION(hw_getusername);
  121. PHP_FUNCTION(hw_setlinkroot);
  122. PHP_FUNCTION(hw_inscoll);
  123. PHP_FUNCTION(hw_incollections);
  124. PHP_FUNCTION(hw_insertobject);
  125. PHP_FUNCTION(hw_insdoc);
  126. PHP_FUNCTION(hw_identify);
  127. PHP_FUNCTION(hw_free_document);
  128. PHP_FUNCTION(hw_new_document);
  129. PHP_FUNCTION(hw_output_document);
  130. PHP_FUNCTION(hw_document_size);
  131. PHP_FUNCTION(hw_document_attributes);
  132. PHP_FUNCTION(hw_document_bodytag);
  133. PHP_FUNCTION(hw_document_content);
  134. PHP_FUNCTION(hw_document_setcontent);
  135. PHP_FUNCTION(hw_objrec2array);
  136. PHP_FUNCTION(hw_array2objrec);
  137. PHP_FUNCTION(hw_connection_info);
  138. PHP_FUNCTION(hw_getsrcbydestobj);
  139. PHP_FUNCTION(hw_getrellink);
  140. PHP_FUNCTION(hw_dummy);
  141. PHP_FUNCTION(hw_who);
  142. PHP_FUNCTION(hw_stat);
  143. #else
  144. #define hw_module_ptr NULL
  145. #endif /* HYPERWAVE */
  146. #define phpext_hyperwave_ptr hw_module_ptr
  147. #endif /* _HW_H */