- fix some typos
[m6w6/ext-http] / php_http_querystring_object.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-2006, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id$ */
14
15 #ifndef PHP_HTTP_QUERYSTRING_OBJECT_H
16 #define PHP_HTTP_QUERYSTRING_OBJECT_H
17 #ifdef ZEND_ENGINE_2
18
19 typedef struct {
20 zend_object zo;
21 } http_querystring_object;
22
23 #define HTTP_QUERYSTRING_TYPE_BOOL IS_BOOL
24 #define HTTP_QUERYSTRING_TYPE_INT IS_LONG
25 #define HTTP_QUERYSTRING_TYPE_FLOAT IS_DOUBLE
26 #define HTTP_QUERYSTRING_TYPE_STRING IS_STRING
27 #define HTTP_QUERYSTRING_TYPE_ARRAY IS_ARRAY
28 #define HTTP_QUERYSTRING_TYPE_OBJECT IS_OBJECT
29
30 extern zend_class_entry *http_querystring_object_ce;
31 extern zend_function_entry http_querystring_object_fe[];
32
33 extern PHP_MINIT_FUNCTION(http_querystring_object);
34
35 #define http_querystring_object_new(ce) _http_querystring_object_new((ce) TSRMLS_CC)
36 extern zend_object_value _http_querystring_object_new(zend_class_entry *ce TSRMLS_DC);
37 #define http_querystring_object_new_ex(ce, ptr) _http_querystring_object_new_ex((ce), (ptr) TSRMLS_CC)
38 extern zend_object_value _http_querystring_object_new_ex(zend_class_entry *ce, http_querystring_object **ptr TSRMLS_DC);
39 #define http_querystring_object_free(o) _http_querystring_object_free((o) TSRMLS_CC)
40 extern void _http_querystring_object_free(zend_object *object TSRMLS_DC);
41
42 PHP_METHOD(HttpQueryString, __construct);
43 PHP_METHOD(HttpQueryString, __toString);
44 PHP_METHOD(HttpQueryString, get);
45 PHP_METHOD(HttpQueryString, set);
46 PHP_METHOD(HttpQueryString, del);
47 PHP_METHOD(HttpQueryString, mod);
48 PHP_METHOD(HttpQueryString, getInstance);
49
50 #endif
51 #endif
52
53 /*
54 * Local variables:
55 * tab-width: 4
56 * c-basic-offset: 4
57 * End:
58 * vim600: noet sw=4 ts=4 fdm=marker
59 * vim<600: noet sw=4 ts=4
60 */
61