proper cleanup of persistent connections
[m6w6/ext-pq] / src / php_pq.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: pq |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13
14 #ifndef PHP_PQ_H
15 #define PHP_PQ_H
16
17 #define PHP_PQ_EXT_VERSION "1.0.0dev"
18
19 int pq_module_number;
20 zend_module_entry pq_module_entry;
21 #define phpext_pq_ptr &pq_module_entry
22
23 #ifdef PHP_WIN32
24 # define PHP_PQ_API __declspec(dllexport)
25 #elif defined(__GNUC__) && __GNUC__ >= 4
26 # define PHP_PQ_API __attribute__ ((visibility("default")))
27 #else
28 # define PHP_PQ_API
29 #endif
30
31 #ifdef ZTS
32 # include "TSRM.h"
33 #endif
34
35 /*
36 ZEND_BEGIN_MODULE_GLOBALS(pq)
37 long global_value;
38 char *global_string;
39 ZEND_END_MODULE_GLOBALS(pq)
40
41 #ifdef ZTS
42 #define PQ_G(v) TSRMG(pq_globals_id, zend_pq_globals *, v)
43 #else
44 #define PQ_G(v) (pq_globals.v)
45 #endif
46 */
47
48 #endif /* PHP_PQ_H */
49
50
51 /*
52 * Local variables:
53 * tab-width: 4
54 * c-basic-offset: 4
55 * End:
56 * vim600: noet sw=4 ts=4 fdm=marker
57 * vim<600: noet sw=4 ts=4
58 */