Back to index

php5  5.3.10
php_fileinfo.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.0 of the PHP license,       |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_0.txt.                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author: Ilia Alshanetsky <ilia@php.net>                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_fileinfo.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_FILEINFO_H
00022 #define PHP_FILEINFO_H
00023 
00024 extern zend_module_entry fileinfo_module_entry;
00025 #define phpext_fileinfo_ptr &fileinfo_module_entry
00026 
00027 #define PHP_FILEINFO_VERSION "1.0.5-dev"
00028 
00029 #ifdef PHP_WIN32
00030 #define PHP_FILEINFO_API __declspec(dllexport)
00031 #else
00032 #define PHP_FILEINFO_API
00033 #endif
00034 
00035 #ifdef ZTS
00036 #include "TSRM.h"
00037 #endif
00038 
00039 PHP_MINFO_FUNCTION(fileinfo);
00040 
00041 PHP_FUNCTION(finfo_open);
00042 PHP_FUNCTION(finfo_close);
00043 PHP_FUNCTION(finfo_set_flags);
00044 PHP_FUNCTION(finfo_file);
00045 PHP_FUNCTION(finfo_buffer);
00046 PHP_FUNCTION(mime_content_type);
00047 
00048 #ifdef ZTS
00049 #define FILEINFO_G(v) TSRMG(fileinfo_globals_id, zend_fileinfo_globals *, v)
00050 #else
00051 #define FILEINFO_G(v) (fileinfo_globals.v)
00052 #endif
00053 
00054 #endif /* PHP_FILEINFO_H */
00055 
00056 
00057 /*
00058  * Local variables:
00059  * tab-width: 4
00060  * c-basic-offset: 4
00061  * End:
00062  * vim600: noet sw=4 ts=4 fdm=marker
00063  * vim<600: noet sw=4 ts=4
00064  */