import 2.0 devl branch, suitable for PHP-trunk
[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(socket);
35 extern zend_class_entry *PHP_HTTP_EX_CE(response);
36 extern zend_class_entry *PHP_HTTP_EX_CE(url);
37 extern zend_class_entry *PHP_HTTP_EX_CE(querystring);
38 extern zend_class_entry *PHP_HTTP_EX_CE(cookie);
39 extern zend_function_entry php_http_exception_method_entry[];
40
41 PHP_HTTP_API zend_class_entry *php_http_exception_get_default(void);
42 PHP_HTTP_API zend_class_entry *php_http_exception_get_for_code(long code);
43
44 PHP_MINIT_FUNCTION(http_exception);
45
46 #endif
47
48 /*
49 * Local variables:
50 * tab-width: 4
51 * c-basic-offset: 4
52 * End:
53 * vim600: noet sw=4 ts=4 fdm=marker
54 * vim<600: noet sw=4 ts=4
55 */
56