build and file maintenance
[m6w6/ext-http] / php_http_querystring.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_QUERYSTRING_H
14 #define PHP_HTTP_QUERYSTRING_H
15
16 #ifdef PHP_HTTP_HAVE_ICONV
17 PHP_HTTP_API STATUS php_http_querystring_xlate(zval *dst, zval *src, const char *ie, const char *oe TSRMLS_DC);
18 #endif /* PHP_HTTP_HAVE_ICONV */
19 PHP_HTTP_API STATUS php_http_querystring_update(zval *qarray, zval *params, zval *qstring TSRMLS_DC);
20
21 typedef struct php_http_querystring_object {
22 zend_object zo;
23 } php_http_querystring_object_t;
24
25 #define PHP_HTTP_QUERYSTRING_TYPE_BOOL IS_BOOL
26 #define PHP_HTTP_QUERYSTRING_TYPE_INT IS_LONG
27 #define PHP_HTTP_QUERYSTRING_TYPE_FLOAT IS_DOUBLE
28 #define PHP_HTTP_QUERYSTRING_TYPE_STRING IS_STRING
29 #define PHP_HTTP_QUERYSTRING_TYPE_ARRAY IS_ARRAY
30 #define PHP_HTTP_QUERYSTRING_TYPE_OBJECT IS_OBJECT
31
32 extern zend_class_entry *php_http_querystring_class_entry;
33 extern zend_function_entry php_http_querystring_method_entry[];
34
35 extern PHP_MINIT_FUNCTION(http_querystring);
36
37 #define php_http_querystring_object_new php_http_object_new
38 #define php_http_querystring_object_new_ex php_http_object_new_ex
39
40 PHP_METHOD(HttpQueryString, getGlobalInstance);
41 PHP_METHOD(HttpQueryString, __construct);
42 PHP_METHOD(HttpQueryString, getIterator);
43 PHP_METHOD(HttpQueryString, toString);
44 PHP_METHOD(HttpQueryString, toArray);
45 PHP_METHOD(HttpQueryString, get);
46 PHP_METHOD(HttpQueryString, set);
47 PHP_METHOD(HttpQueryString, mod);
48 PHP_METHOD(HttpQueryString, getBool);
49 PHP_METHOD(HttpQueryString, getInt);
50 PHP_METHOD(HttpQueryString, getFloat);
51 PHP_METHOD(HttpQueryString, getString);
52 PHP_METHOD(HttpQueryString, getArray);
53 PHP_METHOD(HttpQueryString, getObject);
54 #ifdef PHP_HTTP_HAVE_ICONV
55 PHP_METHOD(HttpQueryString, xlate);
56 #endif /* PHP_HTTP_HAVE_ICONV */
57 PHP_METHOD(HttpQueryString, factory);
58 PHP_METHOD(HttpQueryString, singleton);
59 PHP_METHOD(HttpQueryString, serialize);
60 PHP_METHOD(HttpQueryString, unserialize);
61 PHP_METHOD(HttpQueryString, offsetGet);
62 PHP_METHOD(HttpQueryString, offsetSet);
63 PHP_METHOD(HttpQueryString, offsetExists);
64 PHP_METHOD(HttpQueryString, offsetUnset);
65
66 #endif /* PHP_HTTP_QUERYSTRING_H */
67
68 /*
69 * Local variables:
70 * tab-width: 4
71 * c-basic-offset: 4
72 * End:
73 * vim600: noet sw=4 ts=4 fdm=marker
74 * vim<600: noet sw=4 ts=4
75 */