73c7c6d1800b142fcbabdb4df604e1f7044880e3
[m6w6/ext-http] / php_http_exception.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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id: php_http_exception_object.h 292841 2009-12-31 08:48:57Z mike $ */
14
15 #ifndef PHP_HTTP_EXCEPTION_H
16 #define PHP_HTTP_EXCEPTION_H
17
18 PHP_MINIT_FUNCTION(http_exception_object);
19
20 #define PHP_HTTP_EX_DEF_CE php_http_exception_class_entry
21 #define PHP_HTTP_EX_CE(name) php_http_ ##name## _exception_class_entry
22
23 extern zend_class_entry *PHP_HTTP_EX_DEF_CE;
24 extern zend_class_entry *PHP_HTTP_EX_CE(runtime);
25 extern zend_class_entry *PHP_HTTP_EX_CE(header);
26 extern zend_class_entry *PHP_HTTP_EX_CE(malformed_headers);
27 extern zend_class_entry *PHP_HTTP_EX_CE(request_method);
28 extern zend_class_entry *PHP_HTTP_EX_CE(message);
29 extern zend_class_entry *PHP_HTTP_EX_CE(message_type);
30 extern zend_class_entry *PHP_HTTP_EX_CE(invalid_param);
31 extern zend_class_entry *PHP_HTTP_EX_CE(encoding);
32 extern zend_class_entry *PHP_HTTP_EX_CE(request);
33 extern zend_class_entry *PHP_HTTP_EX_CE(request_pool);
34 extern zend_class_entry *PHP_HTTP_EX_CE(request_datashare);
35 extern zend_class_entry *PHP_HTTP_EX_CE(request_factory);
36 extern zend_class_entry *PHP_HTTP_EX_CE(socket);
37 extern zend_class_entry *PHP_HTTP_EX_CE(response);
38 extern zend_class_entry *PHP_HTTP_EX_CE(url);
39 extern zend_class_entry *PHP_HTTP_EX_CE(querystring);
40 extern zend_class_entry *PHP_HTTP_EX_CE(cookie);
41 extern zend_function_entry php_http_exception_method_entry[];
42
43 PHP_HTTP_API zend_class_entry *php_http_exception_get_default(void);
44 PHP_HTTP_API zend_class_entry *php_http_exception_get_for_code(long code);
45
46 PHP_MINIT_FUNCTION(http_exception);
47
48 #endif
49
50 /*
51 * Local variables:
52 * tab-width: 4
53 * c-basic-offset: 4
54 * End:
55 * vim600: noet sw=4 ts=4 fdm=marker
56 * vim<600: noet sw=4 ts=4
57 */
58