batch renaming: client*curl curl*client
[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, visibility) PHP_ME(HttpClient, method, PHP_HTTP_ARGS(HttpClient, method), visibility)
19
20 PHP_HTTP_BEGIN_ARGS(send, 1)
21 PHP_HTTP_ARG_VAL(request, 0)
22 PHP_HTTP_END_ARGS;
23
24 zend_class_entry *php_http_client_interface_class_entry;
25
26 zend_function_entry php_http_client_interface_method_entry[] = {
27 PHP_HTTP_CLIENT_ME(send, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
28 {NULL, NULL, NULL}
29 };
30
31 PHP_MINIT_FUNCTION(http_client_interface)
32 {
33 PHP_HTTP_REGISTER_INTERFACE(http, Client, http_client_interface, ZEND_ACC_INTERFACE);
34
35 return SUCCESS;
36 }
37
38 /*
39 * Local variables:
40 * tab-width: 4
41 * c-basic-offset: 4
42 * End:
43 * vim600: noet sw=4 ts=4 fdm=marker
44 * vim<600: noet sw=4 ts=4
45 */
46