X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.h;h=6c455166e6233c877862f769a27ece04865608de;hp=42b713146dc915d61918c20076b9977a0ec5e021;hb=refs%2Fheads%2Fv2.2.x;hpb=f753226f1f45e10ef3916256ec1bc0416c8644a8 diff --git a/php_http_client.h b/php_http_client.h index 42b7131..6c45516 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 @@ -50,11 +62,13 @@ typedef struct php_http_client_ops { } php_http_client_ops_t; typedef struct php_http_client_driver { + const char *name_str; + size_t name_len; php_http_client_ops_t *client_ops; } php_http_client_driver_t; -PHP_HTTP_API STATUS php_http_client_driver_add(const char *name_str, uint name_len, php_http_client_driver_t *driver); -PHP_HTTP_API STATUS php_http_client_driver_get(char **name_str, uint *name_len, php_http_client_driver_t *driver); +PHP_HTTP_API STATUS php_http_client_driver_add(php_http_client_driver_t *driver); +PHP_HTTP_API STATUS php_http_client_driver_get(const char *name_str, size_t name_len, php_http_client_driver_t *driver); typedef struct php_http_client_progress_state { struct { @@ -97,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; @@ -131,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 + */