root/trunk/php_fastxsl.h

Revision 6, 2.6 kB (checked in by george, 10 years ago)

add support for http://www.php.net/xsl extensions.

Line 
1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 4                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 1997-2003 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: Sterling Hughes <sterling@php.net>                           |
16   +----------------------------------------------------------------------+
17
18   $Id: php_fastxsl.h,v 1.1.1.1 2004/02/17 23:31:44 sterling Exp $
19 */
20
21 #include "php.h"
22
23 #ifndef PHP_FASTXSL_H
24 #define PHP_FASTXSL_H
25
26 #include <libxml/xmlmemory.h>
27 #include <libxml/debugXML.h>
28 #include <libxml/HTMLtree.h>
29 #include <libxml/xmlIO.h>
30 #include <libxml/xinclude.h>
31 #include <libxml/catalog.h>
32 #include <libxslt/xslt.h>
33 #include <libxslt/xsltInternals.h>
34 #include <libxslt/transform.h>
35 #include <libxslt/xsltutils.h>
36
37 #include <mm.h>
38 #include <sys/types.h>
39 #include <unistd.h>
40
41 #include "fl_hash.h"
42
43 extern zend_module_entry fastxsl_module_entry;
44 #define phpext_fastxsl_ptr &fastxsl_module_entry
45
46 #ifdef PHP_WIN32
47 #define PHP_FASTXSL_API __declspec(dllexport)
48 #else
49 #define PHP_FASTXSL_API
50 #endif
51
52 #ifdef ZTS
53 #include "TSRM.h"
54 #endif
55
56 PHP_MINIT_FUNCTION(fastxsl);
57 PHP_MSHUTDOWN_FUNCTION(fastxsl);
58 PHP_MINFO_FUNCTION(fastxsl);
59
60 typedef struct {
61         MM   *mm;
62         FL_Hash *table;
63         pid_t owner;
64         FL_Hash *prmtable;
65 } fl_cache;
66
67 typedef struct {
68         xmlDocPtr xd;
69 } php_xd_wrapper;
70
71 typedef struct {
72         xsltStylesheetPtr ss;
73         int allocsize;
74         time_t mtime;
75         int persistant;
76 } php_ss_wrapper;
77
78 typedef struct {
79         fl_cache *cache;
80         char     *shmpath;
81         long      nostat;
82         long      register_functions;
83         long      tmp_allocated_size;
84 } zend_fastxsl_globals;
85
86 #ifdef ZTS
87 #define FASTXSL_G(v) TSRMG(fastxsl_globals_id, zend_fastxsl_globals *, v)
88 #else
89 #define FASTXSL_G(v) (fastxsl_globals.v)
90 #endif
91
92 #endif
93
94
95 /*
96  * Local variables:
97  * tab-width: 4
98  * c-basic-offset: 4
99  * indent-tabs-mode: t
100  * End:
101  */
Note: See TracBrowser for help on using the browser.