root/trunk/php_fastxsl.h

Revision 8, 2.6 kB (checked in by george, 14 years ago)

make error handling more php5 esque

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 #ifdef FASTXSL_MM
38 #include <mm.h>
39 #endif
40
41 #include <sys/types.h>
42 #include <unistd.h>
43
44 #include "fl_hash.h"
45
46 extern zend_module_entry fastxsl_module_entry;
47 #define phpext_fastxsl_ptr &fastxsl_module_entry
48
49 #ifdef PHP_WIN32
50 #define PHP_FASTXSL_API __declspec(dllexport)
51 #else
52 #define PHP_FASTXSL_API
53 #endif
54
55 #ifdef ZTS
56 #include "TSRM.h"
57 #endif
58
59 PHP_MINIT_FUNCTION(fastxsl);
60 PHP_MSHUTDOWN_FUNCTION(fastxsl);
61 PHP_MINFO_FUNCTION(fastxsl);
62
63 typedef struct {
64 #ifdef FASTXSL_MM
65         MM   *mm;
66 #endif
67         FL_Hash *table;
68         pid_t owner;
69         FL_Hash *prmtable;
70 } fl_cache;
71
72 typedef struct {
73         xmlDocPtr xd;
74 } php_xd_wrapper;
75
76 typedef struct {
77         xsltStylesheetPtr ss;
78         int allocsize;
79         time_t mtime;
80         int persistant;
81 } php_ss_wrapper;
82
83 typedef struct {
84         fl_cache *cache;
85         char     *shmpath;
86         char     *errbuf;
87         long      nostat;
88         long      register_functions;
89         long      tmp_allocated_size;
90 } zend_fastxsl_globals;
91
92 #ifdef ZTS
93 #define FASTXSL_G(v) TSRMG(fastxsl_globals_id, zend_fastxsl_globals *, v)
94 #else
95 #define FASTXSL_G(v) (fastxsl_globals.v)
96 #endif
97
98 #endif
99
100
101 /*
102  * Local variables:
103  * tab-width: 4
104  * c-basic-offset: 4
105  * indent-tabs-mode: t
106  * End:
107  */
Note: See TracBrowser for help on using the browser.