1999-04-21 23:11:20 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 15:32:16 +00:00
|
|
|
| PHP Version 4 |
|
1999-04-21 23:11:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 15:32:16 +00:00
|
|
|
| Copyright (c) 1997-2002 The PHP Group |
|
1999-04-21 23:11:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-21 23:11:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2002-02-28 08:29:35 +00:00
|
|
|
| Author: Rasmus Lerdorf <rasmus@php.net> |
|
1999-04-21 23:11:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-04-21 23:11:20 +00:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 00:41:19 +00:00
|
|
|
#ifndef PHP_HYPERWAVE_H
|
|
|
|
#define PHP_HYPERWAVE_H
|
1999-04-21 23:11:20 +00:00
|
|
|
|
2000-02-12 14:38:31 +00:00
|
|
|
#ifdef PHP_WIN32
|
1999-08-06 10:42:00 +00:00
|
|
|
#define PHP_HW_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define PHP_HW_API
|
|
|
|
#endif
|
|
|
|
|
1999-04-21 23:11:20 +00:00
|
|
|
#if HYPERWAVE
|
1999-08-06 10:42:00 +00:00
|
|
|
#ifndef DLEXPORT
|
|
|
|
#define DLEXPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ZTS
|
|
|
|
#include "TSRM.h"
|
|
|
|
#endif
|
|
|
|
|
1999-04-21 23:11:20 +00:00
|
|
|
#include "hg_comm.h"
|
|
|
|
|
1999-12-17 20:55:31 +00:00
|
|
|
extern zend_module_entry hw_module_entry;
|
1999-04-21 23:11:20 +00:00
|
|
|
#define hw_module_ptr &hw_module_entry
|
|
|
|
|
|
|
|
typedef struct {
|
1999-08-06 10:42:00 +00:00
|
|
|
long default_link;
|
|
|
|
long default_port;
|
|
|
|
long num_links,num_persistent;
|
|
|
|
long max_links,max_persistent;
|
|
|
|
long allow_persistent;
|
2000-06-30 09:46:39 +00:00
|
|
|
} zend_hw_globals;
|
1999-08-06 10:42:00 +00:00
|
|
|
|
|
|
|
#ifdef ZTS
|
2001-07-28 11:36:37 +00:00
|
|
|
# define HwSG(v) TSRMG(hw_globals_id, zend_hw_globals *, v)
|
1999-08-06 10:42:00 +00:00
|
|
|
#else
|
|
|
|
# define HwSG(v) (hw_globals.v)
|
2000-06-30 09:46:39 +00:00
|
|
|
extern PHP_HW_API zend_hw_globals hw_globals;
|
1999-08-06 10:42:00 +00:00
|
|
|
#endif
|
1999-04-21 23:11:20 +00:00
|
|
|
|
2000-06-16 18:24:02 +00:00
|
|
|
/*extern hw_module php_hw_module;*/
|
1999-04-21 23:11:20 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int size;
|
|
|
|
char *data;
|
|
|
|
char *attributes;
|
|
|
|
char *bodytag;
|
|
|
|
} hw_document;
|
|
|
|
|
2001-07-30 01:56:43 +00:00
|
|
|
PHP_MINIT_FUNCTION(hw);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(hw);
|
1999-07-27 19:44:46 +00:00
|
|
|
PHP_MINFO_FUNCTION(hw);
|
|
|
|
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_connect);
|
|
|
|
PHP_FUNCTION(hw_pconnect);
|
|
|
|
PHP_FUNCTION(hw_close);
|
|
|
|
PHP_FUNCTION(hw_root);
|
|
|
|
PHP_FUNCTION(hw_info);
|
|
|
|
PHP_FUNCTION(hw_error);
|
|
|
|
PHP_FUNCTION(hw_errormsg);
|
|
|
|
PHP_FUNCTION(hw_mv);
|
|
|
|
PHP_FUNCTION(hw_cp);
|
|
|
|
PHP_FUNCTION(hw_deleteobject);
|
|
|
|
PHP_FUNCTION(hw_changeobject);
|
1999-08-05 19:28:07 +00:00
|
|
|
PHP_FUNCTION(hw_modifyobject);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_getparents);
|
|
|
|
PHP_FUNCTION(hw_getparentsobj);
|
|
|
|
PHP_FUNCTION(hw_children);
|
|
|
|
PHP_FUNCTION(hw_childrenobj);
|
|
|
|
PHP_FUNCTION(hw_getchildcoll);
|
|
|
|
PHP_FUNCTION(hw_getchildcollobj);
|
|
|
|
PHP_FUNCTION(hw_getobject);
|
|
|
|
PHP_FUNCTION(hw_getandlock);
|
|
|
|
PHP_FUNCTION(hw_unlock);
|
|
|
|
PHP_FUNCTION(hw_gettext);
|
|
|
|
PHP_FUNCTION(hw_edittext);
|
|
|
|
PHP_FUNCTION(hw_getcgi);
|
|
|
|
PHP_FUNCTION(hw_getremote);
|
|
|
|
PHP_FUNCTION(hw_getremotechildren);
|
|
|
|
PHP_FUNCTION(hw_pipedocument);
|
|
|
|
PHP_FUNCTION(hw_pipecgi);
|
|
|
|
PHP_FUNCTION(hw_insertdocument);
|
|
|
|
PHP_FUNCTION(hw_docbyanchorobj);
|
|
|
|
PHP_FUNCTION(hw_docbyanchor);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyquery);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyqueryobj);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyquerycoll);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyquerycollobj);
|
2000-10-27 09:29:40 +00:00
|
|
|
PHP_FUNCTION(hw_getobjectbyftquery);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyftqueryobj);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyftquerycoll);
|
|
|
|
PHP_FUNCTION(hw_getobjectbyftquerycollobj);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_getchilddoccoll);
|
|
|
|
PHP_FUNCTION(hw_getchilddoccollobj);
|
|
|
|
PHP_FUNCTION(hw_getanchors);
|
|
|
|
PHP_FUNCTION(hw_getanchorsobj);
|
|
|
|
PHP_FUNCTION(hw_getusername);
|
|
|
|
PHP_FUNCTION(hw_setlinkroot);
|
|
|
|
PHP_FUNCTION(hw_inscoll);
|
|
|
|
PHP_FUNCTION(hw_incollections);
|
|
|
|
PHP_FUNCTION(hw_insertobject);
|
|
|
|
PHP_FUNCTION(hw_insdoc);
|
|
|
|
PHP_FUNCTION(hw_identify);
|
|
|
|
PHP_FUNCTION(hw_free_document);
|
|
|
|
PHP_FUNCTION(hw_new_document);
|
2000-12-04 16:34:06 +00:00
|
|
|
PHP_FUNCTION(hw_new_document_from_file);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_output_document);
|
|
|
|
PHP_FUNCTION(hw_document_size);
|
|
|
|
PHP_FUNCTION(hw_document_attributes);
|
|
|
|
PHP_FUNCTION(hw_document_bodytag);
|
|
|
|
PHP_FUNCTION(hw_document_content);
|
1999-08-05 19:28:07 +00:00
|
|
|
PHP_FUNCTION(hw_document_setcontent);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_objrec2array);
|
|
|
|
PHP_FUNCTION(hw_array2objrec);
|
|
|
|
PHP_FUNCTION(hw_connection_info);
|
|
|
|
PHP_FUNCTION(hw_getsrcbydestobj);
|
2000-11-09 13:36:54 +00:00
|
|
|
PHP_FUNCTION(hw_insertanchors);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(hw_getrellink);
|
|
|
|
PHP_FUNCTION(hw_dummy);
|
|
|
|
PHP_FUNCTION(hw_who);
|
|
|
|
PHP_FUNCTION(hw_stat);
|
1999-10-21 15:15:27 +00:00
|
|
|
PHP_FUNCTION(hw_mapid);
|
1999-08-05 19:28:07 +00:00
|
|
|
|
1999-04-21 23:11:20 +00:00
|
|
|
#else
|
|
|
|
#define hw_module_ptr NULL
|
|
|
|
#endif /* HYPERWAVE */
|
1999-08-05 19:28:07 +00:00
|
|
|
#define phpext_hyperwave_ptr hw_module_ptr
|
2000-07-03 00:41:19 +00:00
|
|
|
#endif /* PHP_HYPERWAVE_H */
|
1999-04-21 23:11:20 +00:00
|
|
|
|