- ditch usage of clunky HTTP_GSC/HTTP_GSP macros
[m6w6/ext-http] / php_http_requestdatashare_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_REQUEST_DATASHARE_OBJECT_H
16 #define PHP_HTTP_REQUEST_DATASHARE_OBJECT_H
17 #ifdef ZEND_ENGINE_2
18
19 typedef struct _http_requestdatashare_object_t {
20 zend_object zo;
21 http_request_datashare *share;
22 } http_requestdatashare_object;
23
24 extern zend_class_entry *http_requestdatashare_object_ce;
25 extern zend_function_entry http_requestdatashare_object_fe[];
26
27 extern PHP_MINIT_FUNCTION(http_requestdatashare_object);
28
29 #define http_requestdatashare_object_new(ce) _http_requestdatashare_object_new((ce) TSRMLS_CC)
30 extern zend_object_value _http_requestdatashare_object_new(zend_class_entry *ce TSRMLS_DC);
31 #define http_requestdatashare_object_new_ex(ce, s, ptr) _http_requestdatashare_object_new_ex((ce), (s), (ptr) TSRMLS_CC)
32 extern zend_object_value _http_requestdatashare_object_new_ex(zend_class_entry *ce, http_request_datashare *share, http_requestdatashare_object **ptr TSRMLS_DC);
33 #define http_requestdatashare_object_free(o) _http_requestdatashare_object_free((o) TSRMLS_CC)
34 extern void _http_requestdatashare_object_free(zend_object *object TSRMLS_DC);
35
36 PHP_METHOD(HttpRequestDataShare, __destruct);
37 PHP_METHOD(HttpRequestDataShare, count);
38 PHP_METHOD(HttpRequestDataShare, attach);
39 PHP_METHOD(HttpRequestDataShare, detach);
40 PHP_METHOD(HttpRequestDataShare, reset);
41 PHP_METHOD(HttpRequestDataShare, factory);
42 #ifndef WONKY
43 PHP_METHOD(HttpRequestDataShare, singleton);
44 #endif
45
46 #endif
47 #endif
48
49 /*
50 * Local variables:
51 * tab-width: 4
52 * c-basic-offset: 4
53 * End:
54 * vim600: noet sw=4 ts=4 fdm=marker
55 * vim<600: noet sw=4 ts=4
56 */
57