3040e769f783f7d9428abf6f9b8ecd475bdb6622
[m6w6/ext-http] / php_http_client_interface.c
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 #include "php_http_api.h"
14 #include "php_http_client.h"
15
16 #define PHP_HTTP_BEGIN_ARGS(method, req_args) PHP_HTTP_BEGIN_ARGS_EX(HttpClient, method, 0, req_args)
17 #define PHP_HTTP_EMPTY_ARGS(method) PHP_HTTP_EMPTY_ARGS_EX(HttpClient, method, 0)
18 #define PHP_HTTP_CLIENT_ME(method) PHP_ABSTRACT_ME(HttpClient, method, PHP_HTTP_ARGS(HttpClient, method))
19
20 PHP_HTTP_BEGIN_ARGS(send, 1)
21 PHP_HTTP_ARG_VAL(request, 0)
22 PHP_HTTP_END_ARGS;
23
24 static zend_class_entry *php_http_client_interface_class_entry;
25
26 zend_class_entry *php_http_client_interface_get_class_entry(void)
27 {
28 return php_http_client_interface_class_entry;
29 }
30
31 zend_function_entry php_http_client_interface_method_entry[] = {
32 PHP_HTTP_CLIENT_ME(send)
33 {NULL, NULL, NULL}
34 };
35
36 PHP_MINIT_FUNCTION(http_client_interface)
37 {
38 PHP_HTTP_REGISTER_INTERFACE(http, Client, http_client_interface, ZEND_ACC_INTERFACE);
39
40 return SUCCESS;
41 }
42
43 /*
44 * Local variables:
45 * tab-width: 4
46 * c-basic-offset: 4
47 * End:
48 * vim600: noet sw=4 ts=4 fdm=marker
49 * vim<600: noet sw=4 ts=4
50 */
51