xref: /PHP-5.5/ext/fileinfo/php_fileinfo.h (revision 73c1be26)
1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 5                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 1997-2015 The PHP Group                                |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.0 of the PHP license,       |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.php.net/license/3_0.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: Ilia Alshanetsky <ilia@php.net>                              |
16   +----------------------------------------------------------------------+
17 */
18 
19 /* $Id$ */
20 
21 #ifndef PHP_FILEINFO_H
22 #define PHP_FILEINFO_H
23 
24 extern zend_module_entry fileinfo_module_entry;
25 #define phpext_fileinfo_ptr &fileinfo_module_entry
26 
27 #define PHP_FILEINFO_VERSION "1.0.5"
28 
29 #ifdef PHP_WIN32
30 #define PHP_FILEINFO_API __declspec(dllexport)
31 #else
32 #define PHP_FILEINFO_API
33 #endif
34 
35 #ifdef ZTS
36 #include "TSRM.h"
37 #endif
38 
39 PHP_MINFO_FUNCTION(fileinfo);
40 
41 PHP_FUNCTION(finfo_open);
42 PHP_FUNCTION(finfo_close);
43 PHP_FUNCTION(finfo_set_flags);
44 PHP_FUNCTION(finfo_file);
45 PHP_FUNCTION(finfo_buffer);
46 PHP_FUNCTION(mime_content_type);
47 
48 #ifdef ZTS
49 #define FILEINFO_G(v) TSRMG(fileinfo_globals_id, zend_fileinfo_globals *, v)
50 #else
51 #define FILEINFO_G(v) (fileinfo_globals.v)
52 #endif
53 
54 #endif	/* PHP_FILEINFO_H */
55 
56 
57 /*
58  * Local variables:
59  * tab-width: 4
60  * c-basic-offset: 4
61  * End:
62  * vim600: noet sw=4 ts=4 fdm=marker
63  * vim<600: noet sw=4 ts=4
64  */
65