change array_list API
[m6w6/ext-http] / php_http_querystring.h
index 1c2dbebca3646fc02fd5e1f8efd1803aaef76888..e34ccc004e5fd0ec77d417f30942a220050659c3 100644 (file)
 PHP_HTTP_API STATUS php_http_querystring_xlate(zval *dst, zval *src, const char *ie, const char *oe TSRMLS_DC);
 #endif /* PHP_HTTP_HAVE_ICONV */
 PHP_HTTP_API STATUS php_http_querystring_update(zval *qarray, zval *params, zval *qstring TSRMLS_DC);
+PHP_HTTP_API STATUS php_http_querystring_ctor(zval *instance, zval *params TSRMLS_DC);
 
-typedef struct php_http_querystring_object {
-       zend_object zo;
-} php_http_querystring_object_t;
+typedef php_http_object_t php_http_querystring_object_t;
 
 #define PHP_HTTP_QUERYSTRING_TYPE_BOOL         IS_BOOL
 #define PHP_HTTP_QUERYSTRING_TYPE_INT          IS_LONG
@@ -29,10 +28,9 @@ typedef struct php_http_querystring_object {
 #define PHP_HTTP_QUERYSTRING_TYPE_ARRAY                IS_ARRAY
 #define PHP_HTTP_QUERYSTRING_TYPE_OBJECT       IS_OBJECT
 
-extern zend_class_entry *php_http_querystring_class_entry;
-extern zend_function_entry php_http_querystring_method_entry[];
+zend_class_entry *php_http_querystring_get_class_entry(void);
 
-extern PHP_MINIT_FUNCTION(http_querystring);
+PHP_MINIT_FUNCTION(http_querystring);
 
 #define php_http_querystring_object_new php_http_object_new
 #define php_http_querystring_object_new_ex php_http_object_new_ex