X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_querystring.h;h=e34ccc004e5fd0ec77d417f30942a220050659c3;hp=92abd0179053f412fbf4a7ea2f80bcf4927b4b8a;hb=7b028d0cbb030f9610084314f67b77907d8474a2;hpb=d3485e3b28336153dca690e872ffe1ddc60fedd2 diff --git a/php_http_querystring.h b/php_http_querystring.h index 92abd01..e34ccc0 100644 --- a/php_http_querystring.h +++ b/php_http_querystring.h @@ -6,28 +6,20 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2010, Michael Wallner | + | Copyright (c) 2004-2011, Michael Wallner | +--------------------------------------------------------------------+ */ -/* $Id: php_http_querystring_api.h 292841 2009-12-31 08:48:57Z mike $ */ - #ifndef PHP_HTTP_QUERYSTRING_H #define PHP_HTTP_QUERYSTRING_H -/* API */ - #ifdef PHP_HTTP_HAVE_ICONV -PHP_HTTP_API int php_http_querystring_xlate(zval *array, zval *param, const char *ie, const char *oe TSRMLS_DC); +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 void php_http_querystring_update(zval *qarray, zval *qstring TSRMLS_DC); -PHP_HTTP_API int php_http_querystring_modify(zval *qarray, zval *params TSRMLS_DC); - -/* PHP */ +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 @@ -36,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