34 #ifndef GRPC_INTERNAL_CORE_CLIENT_CONFIG_RESOLVER_H
35 #define GRPC_INTERNAL_CORE_CLIENT_CONFIG_RESOLVER_H
55 struct sockaddr *failing_address,
56 int failing_address_len);
61 #ifdef GRPC_RESOLVER_REFCOUNT_DEBUG
62 #define GRPC_RESOLVER_REF(p, r) grpc_resolver_ref((p), __FILE__, __LINE__, (r))
63 #define GRPC_RESOLVER_UNREF(p, r) \
64 grpc_resolver_unref((p), __FILE__, __LINE__, (r))
70 #define GRPC_RESOLVER_REF(p, r) grpc_resolver_ref((p))
71 #define GRPC_RESOLVER_UNREF(p, r) grpc_resolver_unref((p))
84 struct sockaddr *failing_address,
85 int failing_address_len);
void grpc_resolver_shutdown(grpc_resolver *resolver)
Definition: resolver.c:68
Definition: sync_generic.h:47
void grpc_resolver_init(grpc_resolver *resolver, const grpc_resolver_vtable *vtable)
Definition: resolver.c:36
void grpc_resolver_unref(grpc_resolver *policy)
Definition: resolver.c:61
const grpc_resolver_vtable * vtable
Definition: resolver.h:47
Definition: resolver.h:51
grpc_resolver provides grpc_client_config objects to grpc_channel objects
Definition: resolver.h:46
Definition: client_config.c:40
void(* channel_saw_error)(grpc_resolver *resolver, struct sockaddr *failing_address, int failing_address_len)
Definition: resolver.h:54
void grpc_resolver_next(grpc_resolver *resolver, grpc_client_config **target_config, grpc_iomgr_closure *on_complete)
Get the next client config.
Definition: resolver.c:79
A closure over a grpc_iomgr_cb_func.
Definition: iomgr.h:45
gpr_refcount refs
Definition: resolver.h:48
void(* shutdown)(grpc_resolver *resolver)
Definition: resolver.h:53
void grpc_resolver_channel_saw_error(grpc_resolver *resolver, struct sockaddr *failing_address, int failing_address_len)
Notification that the channel has seen an error on some address.
Definition: resolver.c:72
void(* destroy)(grpc_resolver *resolver)
Definition: resolver.h:52
void(* next)(grpc_resolver *resolver, grpc_client_config **target_config, grpc_iomgr_closure *on_complete)
Definition: resolver.h:57
void grpc_resolver_ref(grpc_resolver *policy)
Definition: resolver.c:49