diff options
Diffstat (limited to 'src/php/ext/grpc/call_credentials.h')
-rw-r--r-- | src/php/ext/grpc/call_credentials.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/php/ext/grpc/call_credentials.h b/src/php/ext/grpc/call_credentials.h index 663cc6858d..e0cc863853 100644 --- a/src/php/ext/grpc/call_credentials.h +++ b/src/php/ext/grpc/call_credentials.h @@ -19,17 +19,9 @@ #ifndef NET_GRPC_PHP_GRPC_CALL_CREDENTIALS_H_ #define NET_GRPC_PHP_GRPC_CALL_CREDENTIALS_H_ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "php.h" -#include "php_ini.h" -#include "ext/standard/info.h" #include "php_grpc.h" -#include "grpc/grpc.h" -#include "grpc/grpc_security.h" +#include <grpc/grpc_security.h> /* Class entry for the CallCredentials PHP class */ extern zend_class_entry *grpc_ce_call_credentials; @@ -40,24 +32,12 @@ PHP_GRPC_WRAP_OBJECT_START(wrapped_grpc_call_credentials) grpc_call_credentials *wrapped; PHP_GRPC_WRAP_OBJECT_END(wrapped_grpc_call_credentials) -#if PHP_MAJOR_VERSION < 7 - -#define Z_WRAPPED_GRPC_CALL_CREDS_P(zv) \ - (wrapped_grpc_call_credentials *)zend_object_store_get_object(zv TSRMLS_CC) - -#else - static inline wrapped_grpc_call_credentials *wrapped_grpc_call_credentials_from_obj(zend_object *obj) { return (wrapped_grpc_call_credentials*)( (char*)(obj) - XtOffsetOf(wrapped_grpc_call_credentials, std)); } -#define Z_WRAPPED_GRPC_CALL_CREDS_P(zv) \ - wrapped_grpc_call_credentials_from_obj(Z_OBJ_P((zv))) - -#endif /* PHP_MAJOR_VERSION */ - /* Struct to hold callback function for plugin creds API */ typedef struct plugin_state { zend_fcall_info *fci; |