1 #ifndef DS_QUEUE_CE_H 2 #define DS_QUEUE_CE_H 3 4 #include "php.h" 5 #include "../../common.h" 6 #include "../arginfo.h" 7 8 extern zend_class_entry *php_ds_queue_ce; 9 10 ARGINFO_OPTIONAL_ZVAL( Queue___construct, values); 11 ARGINFO_LONG( Queue_allocate, capacity); 12 ARGINFO_NONE_RETURN_LONG( Queue_capacity); 13 ARGINFO_VARIADIC_ZVAL( Queue_push, values); 14 ARGINFO_NONE( Queue_pop); 15 ARGINFO_NONE( Queue_peek); 16 ARGINFO_NONE_RETURN_OBJ( Queue_getIterator, Traversable); 17 18 ARGINFO_ZVAL_RETURN_BOOL( Queue_offsetExists, offset); 19 ARGINFO_OFFSET_GET( Queue_offsetGet); 20 ARGINFO_OFFSET_SET( Queue_offsetSet); 21 ARGINFO_OFFSET_UNSET( Queue_offsetUnset); 22 23 void php_ds_register_queue(); 24 25 #endif 26