~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/dbx/php_dbx.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
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
   +----------------------------------------------------------------------+
 
21
*/
 
22
 
 
23
/* $Id: php_dbx.h,v 1.19 2004/01/08 17:32:01 sniper Exp $ */
 
24
 
 
25
#ifndef ZEND_PHP_DBX_H
 
26
#define ZEND_PHP_DBX_H
 
27
 
 
28
#ifndef INIT_FUNC_ARGS
 
29
#include "zend_modules.h"
 
30
#endif
 
31
 
 
32
extern zend_module_entry dbx_module_entry;
 
33
#define phpext_dbx_ptr &dbx_module_entry
 
34
 
 
35
#ifdef ZEND_WIN32
 
36
#define ZEND_DBX_API __declspec(dllexport)
 
37
#else
 
38
#define ZEND_DBX_API
 
39
#endif
 
40
 
 
41
ZEND_MINIT_FUNCTION(dbx);
 
42
ZEND_MSHUTDOWN_FUNCTION(dbx);
 
43
/* ZEND_RINIT_FUNCTION(dbx); */
 
44
/* ZEND_RSHUTDOWN_FUNCTION(dbx); */
 
45
 
 
46
ZEND_MINFO_FUNCTION(dbx);
 
47
 
 
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);
 
54
 
 
55
ZEND_FUNCTION(dbx_sort);
 
56
ZEND_FUNCTION(dbx_compare);
 
57
 
 
58
/* 
 
59
   Declare any global variables you may need between the BEGIN
 
60
   and END macros here:     
 
61
*/
 
62
 
 
63
/*
 
64
ZEND_BEGIN_MODULE_GLOBALS(dbx)
 
65
ZEND_END_MODULE_GLOBALS(dbx)
 
66
*/
 
67
 
 
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.
 
73
*/
 
74
 
 
75
#ifdef ZTS
 
76
#define DBXG(v) TSRMG(dbx_globals_id, zend_dbx_globals *, v)
 
77
#else
 
78
#define DBXG(v) (dbx_globals.v)
 
79
#endif
 
80
 
 
81
#endif /* ZEND_PHP_DBX_H */
 
82
 
 
83
 
 
84
/*
 
85
 * Local variables:
 
86
 * tab-width: 4
 
87
 * c-basic-offset: 4
 
88
 * End:
 
89
 */