aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext/grpc/call_credentials.h
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2017-09-04 22:22:18 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2017-09-04 22:22:18 -0700
commit6d8cc7c7ee3933d8643ab479402717cf9a0726a2 (patch)
tree6b7bec907c360ed260f3782560572d43259b3c49 /src/php/ext/grpc/call_credentials.h
parentd27504f09a6ec147ee0ea4d38b6d4714e0449fda (diff)
Fixed some PHP errors
Diffstat (limited to 'src/php/ext/grpc/call_credentials.h')
-rwxr-xr-xsrc/php/ext/grpc/call_credentials.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/php/ext/grpc/call_credentials.h b/src/php/ext/grpc/call_credentials.h
index 9be8763278..663cc6858d 100755
--- a/src/php/ext/grpc/call_credentials.h
+++ b/src/php/ext/grpc/call_credentials.h
@@ -65,9 +65,12 @@ typedef struct plugin_state {
} plugin_state;
/* Callback function for plugin creds API */
-void plugin_get_metadata(void *state, grpc_auth_metadata_context context,
- grpc_credentials_plugin_metadata_cb cb,
- void *user_data);
+int plugin_get_metadata(
+ void *ptr, grpc_auth_metadata_context context,
+ grpc_credentials_plugin_metadata_cb cb, void *user_data,
+ grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX],
+ size_t *num_creds_md, grpc_status_code *status,
+ const char **error_details);
/* Cleanup function for plugin creds API */
void plugin_destroy_state(void *ptr);