X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_interface.c;h=3040e769f783f7d9428abf6f9b8ecd475bdb6622;hp=691250891a0584c13a85e785babfc5290d337a88;hb=bd80b17b026a00a254ee8693cd7bacf1ebdec4cf;hpb=6cc24086f57aa1e8f4d6a2c12361635e7c24f60f diff --git a/php_http_client_interface.c b/php_http_client_interface.c index 6912508..3040e76 100644 --- a/php_http_client_interface.c +++ b/php_http_client_interface.c @@ -15,16 +15,21 @@ #define PHP_HTTP_BEGIN_ARGS(method, req_args) PHP_HTTP_BEGIN_ARGS_EX(HttpClient, method, 0, req_args) #define PHP_HTTP_EMPTY_ARGS(method) PHP_HTTP_EMPTY_ARGS_EX(HttpClient, method, 0) -#define PHP_HTTP_CLIENT_ME(method, visibility) PHP_ME(HttpClient, method, PHP_HTTP_ARGS(HttpClient, method), visibility) +#define PHP_HTTP_CLIENT_ME(method) PHP_ABSTRACT_ME(HttpClient, method, PHP_HTTP_ARGS(HttpClient, method)) PHP_HTTP_BEGIN_ARGS(send, 1) PHP_HTTP_ARG_VAL(request, 0) PHP_HTTP_END_ARGS; -zend_class_entry *php_http_client_interface_class_entry; +static zend_class_entry *php_http_client_interface_class_entry; + +zend_class_entry *php_http_client_interface_get_class_entry(void) +{ + return php_http_client_interface_class_entry; +} zend_function_entry php_http_client_interface_method_entry[] = { - PHP_HTTP_CLIENT_ME(send, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT) + PHP_HTTP_CLIENT_ME(send) {NULL, NULL, NULL} };