xref: /PHP-8.0/ext/phar/php_phar.h (revision c245898b)
1 /*
2   +----------------------------------------------------------------------+
3   | phar php single-file executable PHP extension                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) The PHP Group                                          |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.01 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_01.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   | Authors: Gregory Beaver <cellog@php.net>                             |
16   |          Marcus Boerger <helly@php.net>                              |
17   +----------------------------------------------------------------------+
18 */
19 
20 #ifndef PHP_PHAR_H
21 #define PHP_PHAR_H
22 
23 #define PHP_PHAR_VERSION PHP_VERSION
24 
25 #include "ext/standard/basic_functions.h"
26 extern zend_module_entry phar_module_entry;
27 #define phpext_phar_ptr &phar_module_entry
28 
29 #ifdef PHP_WIN32
30 #define PHP_PHAR_API __declspec(dllexport)
31 #else
32 #define PHP_PHAR_API PHPAPI
33 #endif
34 
35 PHP_PHAR_API int phar_resolve_alias(char *alias, size_t alias_len, char **filename, size_t *filename_len);
36 
37 #endif /* PHP_PHAR_H */
38