File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / fileinfo / php_fileinfo.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:31:50 2013 UTC (11 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: /*
    2:   +----------------------------------------------------------------------+
    3:   | PHP Version 5                                                        |
    4:   +----------------------------------------------------------------------+
    5:   | Copyright (c) 1997-2013 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: php_fileinfo.h,v 1.1.1.3 2013/07/22 01:31:50 misho Exp $ */
   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:  */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>