Changed naming style of C schedule/cancel functions.

pull/19778/head
Matthew Stevenson 6 years ago
parent 5d9297d0bc
commit 90839c5e0f
  1. 8
      src/cpp/common/tls_credentials_options.cc
  2. 8
      src/cpp/common/tls_credentials_options_util.cc
  3. 8
      src/cpp/common/tls_credentials_options_util.h

@ -119,8 +119,8 @@ TlsCredentialReloadConfig::TlsCredentialReloadConfig(
cancel_ = cancel; cancel_ = cancel;
destruct_ = destruct; destruct_ = destruct;
c_config_ = grpc_tls_credential_reload_config_create( c_config_ = grpc_tls_credential_reload_config_create(
config_user_data_, &tls_credential_reload_config_c_schedule, config_user_data_, &TlsCredentialReloadConfigCSchedule,
&tls_credential_reload_config_c_cancel, destruct_); &TlsCredentialReloadConfigCCancel, destruct_);
c_config_->set_context(static_cast<void*>(this)); c_config_->set_context(static_cast<void*>(this));
} }
@ -226,8 +226,8 @@ TlsServerAuthorizationCheckConfig::TlsServerAuthorizationCheckConfig(
cancel_ = cancel; cancel_ = cancel;
destruct_ = destruct; destruct_ = destruct;
c_config_ = grpc_tls_server_authorization_check_config_create( c_config_ = grpc_tls_server_authorization_check_config_create(
config_user_data_, &tls_server_authorization_check_config_c_schedule, config_user_data_, &TlsServerAuthorizationCheckConfigCSchedule,
&tls_server_authorization_check_config_c_cancel, destruct_); &TlsServerAuthorizationCheckConfigCCancel, destruct_);
c_config_->set_context(static_cast<void*>(this)); c_config_->set_context(static_cast<void*>(this));
} }

@ -75,7 +75,7 @@ std::shared_ptr<TlsKeyMaterialsConfig> ConvertToCppKeyMaterialsConfig(
} }
/** The C schedule and cancel functions for the credential reload config. **/ /** The C schedule and cancel functions for the credential reload config. **/
int tls_credential_reload_config_c_schedule( int TlsCredentialReloadConfigCSchedule(
void* config_user_data, grpc_tls_credential_reload_arg* arg) { void* config_user_data, grpc_tls_credential_reload_arg* arg) {
TlsCredentialReloadConfig* cpp_config = TlsCredentialReloadConfig* cpp_config =
static_cast<TlsCredentialReloadConfig*>(arg->config->context()); static_cast<TlsCredentialReloadConfig*>(arg->config->context());
@ -89,7 +89,7 @@ int tls_credential_reload_config_c_schedule(
return schedule_output; return schedule_output;
} }
void tls_credential_reload_config_c_cancel( void TlsCredentialReloadConfigCCancel(
void* config_user_data, grpc_tls_credential_reload_arg* arg) { void* config_user_data, grpc_tls_credential_reload_arg* arg) {
TlsCredentialReloadConfig* cpp_config = TlsCredentialReloadConfig* cpp_config =
static_cast<TlsCredentialReloadConfig*>(arg->config->context()); static_cast<TlsCredentialReloadConfig*>(arg->config->context());
@ -104,7 +104,7 @@ void tls_credential_reload_config_c_cancel(
/** The C schedule and cancel functions for the server authorization check /** The C schedule and cancel functions for the server authorization check
* config. **/ * config. **/
int tls_server_authorization_check_config_c_schedule( int TlsServerAuthorizationCheckConfigCSchedule(
void* config_user_data, grpc_tls_server_authorization_check_arg* arg) { void* config_user_data, grpc_tls_server_authorization_check_arg* arg) {
TlsServerAuthorizationCheckConfig* cpp_config = TlsServerAuthorizationCheckConfig* cpp_config =
static_cast<TlsServerAuthorizationCheckConfig*>(arg->config->context()); static_cast<TlsServerAuthorizationCheckConfig*>(arg->config->context());
@ -119,7 +119,7 @@ int tls_server_authorization_check_config_c_schedule(
return schedule_output; return schedule_output;
} }
void tls_server_authorization_check_config_c_cancel( void TlsServerAuthorizationCheckConfigCCancel(
void* config_user_data, grpc_tls_server_authorization_check_arg* arg) { void* config_user_data, grpc_tls_server_authorization_check_arg* arg) {
TlsServerAuthorizationCheckConfig* cpp_config = TlsServerAuthorizationCheckConfig* cpp_config =
static_cast<TlsServerAuthorizationCheckConfig*>(arg->config->context()); static_cast<TlsServerAuthorizationCheckConfig*>(arg->config->context());

@ -36,16 +36,16 @@ std::shared_ptr<TlsKeyMaterialsConfig> ConvertToCppKeyMaterialsConfig(
/** The following 4 functions convert the user-provided schedule or cancel /** The following 4 functions convert the user-provided schedule or cancel
* functions into C style schedule or cancel functions. **/ * functions into C style schedule or cancel functions. **/
int tls_credential_reload_config_c_schedule( int TlsCredentialReloadConfigCSchedule(
void* config_user_data, grpc_tls_credential_reload_arg* arg); void* config_user_data, grpc_tls_credential_reload_arg* arg);
void tls_credential_reload_config_c_cancel(void* config_user_data, void TlsCredentialReloadConfigCCancel(void* config_user_data,
grpc_tls_credential_reload_arg* arg); grpc_tls_credential_reload_arg* arg);
int tls_server_authorization_check_config_c_schedule( int TlsServerAuthorizationCheckConfigCSchedule(
void* config_user_data, grpc_tls_server_authorization_check_arg* arg); void* config_user_data, grpc_tls_server_authorization_check_arg* arg);
void tls_server_authorization_check_config_c_cancel( void TlsServerAuthorizationCheckConfigCCancel(
void* config_user_data, grpc_tls_server_authorization_check_arg* arg); void* config_user_data, grpc_tls_server_authorization_check_arg* arg);
} // namespace experimental } // namespace experimental

Loading…
Cancel
Save