xref: /PHP-8.4/ext/curl/php_curl.h (revision 01b3fc03)
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 
18 #ifndef _PHP_CURL_H
19 #define _PHP_CURL_H
20 
21 #include "php.h"
22 
23 #ifdef PHP_WIN32
24 # ifdef PHP_CURL_EXPORTS
25 #  define PHP_CURL_API __declspec(dllexport)
26 # else
27 #  define PHP_CURL_API __declspec(dllimport)
28 # endif
29 #elif defined(__GNUC__) && __GNUC__ >= 4
30 # define PHP_CURL_API __attribute__ ((visibility("default")))
31 #else
32 # define PHP_CURL_API
33 #endif
34 
35 extern zend_module_entry curl_module_entry;
36 #define phpext_curl_ptr &curl_module_entry
37 
38 PHP_CURL_API extern zend_class_entry *curl_ce;
39 PHP_CURL_API extern zend_class_entry *curl_share_ce;
40 PHP_CURL_API extern zend_class_entry *curl_multi_ce;
41 PHP_CURL_API extern zend_class_entry *curl_CURLFile_class;
42 PHP_CURL_API extern zend_class_entry *curl_CURLStringFile_class;
43 
44 #endif  /* _PHP_CURL_H */
45