X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_message_object.h;h=1004ac6c8ac0479e0c5a49a1d3140ea96f6edb5e;hp=4c084703fce5b4b171a4c2f0947c31e8c2fb21a0;hb=e37040ebf8a470c77c7ae3498ee582ca20db259c;hpb=778163476c4500a8554c35c68dfc9c0cd33f82f8 diff --git a/php_http_message_object.h b/php_http_message_object.h index 4c08470..1004ac6 100644 --- a/php_http_message_object.h +++ b/php_http_message_object.h @@ -16,7 +16,7 @@ #define PHP_HTTP_MESSAGE_OBJECT_H #ifdef ZEND_ENGINE_2 -typedef struct { +typedef struct _http_message_object_t { zend_object zo; http_message *message; zend_object_value parent; @@ -32,6 +32,9 @@ extern PHP_MINIT_FUNCTION(http_message_object); #define http_message_object_prepend_ex(o, p, t) _http_message_object_prepend_ex((o), (p), (t) TSRMLS_CC) extern void _http_message_object_prepend_ex(zval *this_ptr, zval *prepend, zend_bool top TSRMLS_DC); +#define http_message_object_reverse(t, r) _http_message_object_reverse((t), (r) TSRMLS_CC) +extern void _http_message_object_reverse(zval *this_ptr, zval *return_value TSRMLS_DC); + #define http_message_object_new(ce) _http_message_object_new((ce) TSRMLS_CC) extern zend_object_value _http_message_object_new(zend_class_entry *ce TSRMLS_DC); #define http_message_object_new_ex(ce, msg, ptr) _http_message_object_new_ex((ce), (msg), (ptr) TSRMLS_CC)