diff options
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy_registry.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy_registry.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy_registry.cc b/src/core/ext/filters/client_channel/lb_policy_registry.cc index f2460f8304..7b0a926a1b 100644 --- a/src/core/ext/filters/client_channel/lb_policy_registry.cc +++ b/src/core/ext/filters/client_channel/lb_policy_registry.cc @@ -24,7 +24,7 @@ #define MAX_POLICIES 10 -static grpc_lb_policy_factory *g_all_of_the_lb_policies[MAX_POLICIES]; +static grpc_lb_policy_factory* g_all_of_the_lb_policies[MAX_POLICIES]; static int g_number_of_lb_policies = 0; void grpc_lb_policy_registry_init(void) { g_number_of_lb_policies = 0; } @@ -36,7 +36,7 @@ void grpc_lb_policy_registry_shutdown(void) { } } -void grpc_register_lb_policy(grpc_lb_policy_factory *factory) { +void grpc_register_lb_policy(grpc_lb_policy_factory* factory) { int i; for (i = 0; i < g_number_of_lb_policies; i++) { GPR_ASSERT(0 != gpr_stricmp(factory->vtable->name, @@ -47,7 +47,7 @@ void grpc_register_lb_policy(grpc_lb_policy_factory *factory) { g_all_of_the_lb_policies[g_number_of_lb_policies++] = factory; } -static grpc_lb_policy_factory *lookup_factory(const char *name) { +static grpc_lb_policy_factory* lookup_factory(const char* name) { int i; if (name == NULL) return NULL; @@ -61,10 +61,10 @@ static grpc_lb_policy_factory *lookup_factory(const char *name) { return NULL; } -grpc_lb_policy *grpc_lb_policy_create(grpc_exec_ctx *exec_ctx, const char *name, - grpc_lb_policy_args *args) { - grpc_lb_policy_factory *factory = lookup_factory(name); - grpc_lb_policy *lb_policy = +grpc_lb_policy* grpc_lb_policy_create(grpc_exec_ctx* exec_ctx, const char* name, + grpc_lb_policy_args* args) { + grpc_lb_policy_factory* factory = lookup_factory(name); + grpc_lb_policy* lb_policy = grpc_lb_policy_factory_create_lb_policy(exec_ctx, factory, args); return lb_policy; } |