-
Notifications
You must be signed in to change notification settings - Fork 3
/
php_qrencode.h
64 lines (53 loc) · 1.67 KB
/
php_qrencode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 2007 Vanilla (San Tai) Hsu |
+----------------------------------------------------------------------+
| This source file is subject to the BSD license, that is bundled with |
| this package in the file LICENSE |
+----------------------------------------------------------------------+
| Author: Vanilla (San Tai) Hsu (vanilla@FreeBSD.org> |
+----------------------------------------------------------------------+
*/
/*
* $Header: /home/ncvs/php_extension/qrencode/php_qrencode.h,v 1.1 2007/03/29 08:58:11 vanilla Exp $
*/
#ifndef PHP_QRENCODE_H
#define PHP_QRENCODE_H
extern zend_module_entry qrencode_module_entry;
#define phpext_qrencode_ptr &qrencode_module_entry
#if PHP_VERSION_ID >= 80000
#ifndef TSRMLS_C
#define TSRMLS_C
#endif
#ifndef TSRMLS_CC
#define TSRMLS_CC
#endif
#ifndef TSRMLS_D
#define TSRMLS_D
#endif
#ifndef TSRMLS_DC
#define TSRMLS_DC
#endif
#endif
#ifdef PHP_WIN32
#define PHP_QRENCODE_API __declspec(dllexport)
#else
#define PHP_QRENCODE_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define PHP_QRENCODE_VERSION "0.11"
PHP_MINIT_FUNCTION(qrencode);
PHP_MSHUTDOWN_FUNCTION(qrencode);
PHP_MINFO_FUNCTION(qrencode);
PHP_FUNCTION(qr_encode);
PHP_FUNCTION(qr_save);
#ifdef ZTS
#define QRENCODE_G(v) TSRMG(qrencode_globals_id, zend_qrencode_globals *, v)
#else
#define QRENCODE_G(v) (qrencode_globals.v)
#endif
#endif /* PHP_QRENCODE_H */