1 /*
2    +----------------------------------------------------------------------+
3    | This source file is subject to version 3.01 of the PHP license,      |
4    | that is bundled with this package in the file LICENSE, and is        |
5    | available through the world-wide-web at the following url:           |
6    | https://www.php.net/license/3_01.txt                                 |
7    | If you did not receive a copy of the PHP license and are unable to   |
8    | obtain it through the world-wide-web, please send a note to          |
9    | license@php.net so we can mail you a copy immediately.               |
10    +----------------------------------------------------------------------+
11    | Authors: Hans-Peter Oeri (University of St.Gallen) <hp@oeri.ch>      |
12    +----------------------------------------------------------------------+
13  */
14 
15 #ifndef RESOURCEBUNDLE_ITERATOR_H
16 #define RESOURCEBUNDLE_ITERATOR_H
17 
18 #include <zend.h>
19 
20 #include "resourcebundle/resourcebundle_class.h"
21 
22 typedef struct {
23 	zend_object_iterator  intern;
24 	ResourceBundle_object *subject;
25 	bool             is_table;
26 	zend_long             length;
27 	zval                  current;
28 	char                  *currentkey;
29 	zend_long             i;
30 } ResourceBundle_iterator;
31 
32 zend_object_iterator *resourcebundle_get_iterator( zend_class_entry *ce, zval *object, int byref );
33 
34 #endif // #ifndef RESOURCEBUNDLE_ITERATOR_H
35