X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.h;h=c9768b9e8bfd433036e8d206a8f9280632be9c9e;hp=9a7c630bbe52dc644518188f2b99ba657bdb99e1;hb=401e7e3f740efedb5e543948fe89e1c2dfad47c5;hpb=c1f2ac7da167dec92df81ad33de65b953ccd043d diff --git a/php_http_client.h b/php_http_client.h index 9a7c630..c9768b9 100644 --- a/php_http_client.h +++ b/php_http_client.h @@ -1,3 +1,15 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2014, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + #ifndef PHP_HTTP_CLIENT_H #define PHP_HTTP_CLIENT_H @@ -72,7 +84,7 @@ typedef struct php_http_client_progress_state { unsigned finished:1; } php_http_client_progress_state_t; -typedef STATUS (*php_http_client_response_callback_t)(void *arg, struct php_http_client *client, php_http_client_enqueue_t *e, php_http_message_t **request, php_http_message_t **response); +typedef STATUS (*php_http_client_response_callback_t)(void *arg, struct php_http_client *client, php_http_client_enqueue_t *e, php_http_message_t **response); typedef void (*php_http_client_progress_callback_t)(void *arg, struct php_http_client *client, php_http_client_enqueue_t *e, php_http_client_progress_state_t *state); typedef struct php_http_client { @@ -99,7 +111,7 @@ typedef struct php_http_client { #endif } php_http_client_t; -zend_class_entry *php_http_client_class_entry; +PHP_HTTP_API zend_class_entry *php_http_client_class_entry; typedef struct php_http_client_object { zend_object zo; @@ -133,3 +145,12 @@ PHP_MINIT_FUNCTION(http_client); PHP_MSHUTDOWN_FUNCTION(http_client); #endif + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */