php_fileinfo.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 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. /* $Id$ */
  19. #ifndef PHP_FILEINFO_H
  20. #define PHP_FILEINFO_H
  21. extern zend_module_entry fileinfo_module_entry;
  22. #define phpext_fileinfo_ptr &fileinfo_module_entry
  23. #define PHP_FILEINFO_VERSION "1.0.5"
  24. #ifdef PHP_WIN32
  25. #define PHP_FILEINFO_API __declspec(dllexport)
  26. #else
  27. #define PHP_FILEINFO_API
  28. #endif
  29. #ifdef ZTS
  30. #include "TSRM.h"
  31. #endif
  32. PHP_MINFO_FUNCTION(fileinfo);
  33. PHP_FUNCTION(finfo_open);
  34. PHP_FUNCTION(finfo_close);
  35. PHP_FUNCTION(finfo_set_flags);
  36. PHP_FUNCTION(finfo_file);
  37. PHP_FUNCTION(finfo_buffer);
  38. PHP_FUNCTION(mime_content_type);
  39. #ifdef ZTS
  40. #define FILEINFO_G(v) TSRMG(fileinfo_globals_id, zend_fileinfo_globals *, v)
  41. #else
  42. #define FILEINFO_G(v) (fileinfo_globals.v)
  43. #endif
  44. #endif /* PHP_FILEINFO_H */
  45. /*
  46. * Local variables:
  47. * tab-width: 4
  48. * c-basic-offset: 4
  49. * End:
  50. * vim600: noet sw=4 ts=4 fdm=marker
  51. * vim<600: noet sw=4 ts=4
  52. */