php_curl.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Author: Sterling Hughes <sterling@php.net> |
  14. | Wez Furlong <wez@thebrainroom.com> |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef _PHP_CURL_H
  18. #define _PHP_CURL_H
  19. #include "php.h"
  20. #ifdef PHP_WIN32
  21. # ifdef PHP_CURL_EXPORTS
  22. # define PHP_CURL_API __declspec(dllexport)
  23. # else
  24. # define PHP_CURL_API __declspec(dllimport)
  25. # endif
  26. #elif defined(__GNUC__) && __GNUC__ >= 4
  27. # define PHP_CURL_API __attribute__ ((visibility("default")))
  28. #else
  29. # define PHP_CURL_API
  30. #endif
  31. extern zend_module_entry curl_module_entry;
  32. #define phpext_curl_ptr &curl_module_entry
  33. PHP_CURL_API extern zend_class_entry *curl_ce;
  34. PHP_CURL_API extern zend_class_entry *curl_share_ce;
  35. PHP_CURL_API extern zend_class_entry *curl_multi_ce;
  36. PHP_CURL_API extern zend_class_entry *curl_CURLFile_class;
  37. PHP_CURL_API extern zend_class_entry *curl_CURLStringFile_class;
  38. #endif /* _PHP_CURL_H */