2
+----------------------------------------------------------------------+
4
+----------------------------------------------------------------------+
5
| Copyright (c) 1997-2004 The PHP Group |
6
+----------------------------------------------------------------------+
7
| dbx module version 1.0 |
8
+----------------------------------------------------------------------+
9
| Copyright (c) 2001-2003 Guidance Rotterdam BV |
10
+----------------------------------------------------------------------+
11
| This source file is subject to version 3.0 of the PHP license, |
12
| that is bundled with this package in the file LICENSE, and is |
13
| available through the world-wide-web at the following url: |
14
| http://www.php.net/license/3_0.txt. |
15
| If you did not receive a copy of the PHP license and are unable to |
16
| obtain it through the world-wide-web, please send a note to |
17
| license@php.net so we can mail you a copy immediately. |
18
+----------------------------------------------------------------------+
19
| Author : Marc Boeren <marc@guidance.nl> |
20
+----------------------------------------------------------------------+
23
/* $Id: php_dbx.h,v 1.19 2004/01/08 17:32:01 sniper Exp $ */
25
#ifndef ZEND_PHP_DBX_H
26
#define ZEND_PHP_DBX_H
28
#ifndef INIT_FUNC_ARGS
29
#include "zend_modules.h"
32
extern zend_module_entry dbx_module_entry;
33
#define phpext_dbx_ptr &dbx_module_entry
36
#define ZEND_DBX_API __declspec(dllexport)
41
ZEND_MINIT_FUNCTION(dbx);
42
ZEND_MSHUTDOWN_FUNCTION(dbx);
43
/* ZEND_RINIT_FUNCTION(dbx); */
44
/* ZEND_RSHUTDOWN_FUNCTION(dbx); */
46
ZEND_MINFO_FUNCTION(dbx);
48
ZEND_FUNCTION(dbx_connect);
49
ZEND_FUNCTION(dbx_close);
50
ZEND_FUNCTION(dbx_query);
51
ZEND_FUNCTION(dbx_fetch_row);
52
ZEND_FUNCTION(dbx_error);
53
ZEND_FUNCTION(dbx_escape_string);
55
ZEND_FUNCTION(dbx_sort);
56
ZEND_FUNCTION(dbx_compare);
59
Declare any global variables you may need between the BEGIN
64
ZEND_BEGIN_MODULE_GLOBALS(dbx)
65
ZEND_END_MODULE_GLOBALS(dbx)
68
/* In every function that needs to use variables in php_dbx_globals,
69
do call dbxLS_FETCH(); after declaring other variables used by
70
that function, and always refer to them as dbxG(variable).
71
You are encouraged to rename these macros something shorter, see
72
examples in any other php module directory.
76
#define DBXG(v) TSRMG(dbx_globals_id, zend_dbx_globals *, v)
78
#define DBXG(v) (dbx_globals.v)
81
#endif /* ZEND_PHP_DBX_H */