xref: /PHP-8.2/ext/zend_test/fiber.h (revision c5f9cded)
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   | Authors: Aaron Piotrowski <aaron@trowski.com>                        |
14   +----------------------------------------------------------------------+
15 */
16 
17 #ifndef ZEND_TEST_FIBER_H
18 #define ZEND_TEST_FIBER_H
19 
20 #include "zend_fibers.h"
21 
22 typedef struct _zend_test_fiber zend_test_fiber;
23 
24 struct _zend_test_fiber {
25 	zend_object std;
26 	uint8_t flags;
27 	zend_fiber_context context;
28 	zend_fiber_context *caller;
29 	zend_fiber_context *previous;
30 	zend_test_fiber *target;
31 	zend_fcall_info fci;
32 	zend_fcall_info_cache fci_cache;
33 	zval result;
34 };
35 
36 void zend_test_fiber_init(void);
37 
38 #endif
39