34 #ifndef GRPC_INTERNAL_CORE_TRANSPORT_CONNECTIVITY_STATE_H
35 #define GRPC_INTERNAL_CORE_TRANSPORT_CONNECTIVITY_STATE_H
grpc_connectivity_state
Connectivity state of a channel.
Definition: grpc.h:139
char * name
a name to help debugging
Definition: connectivity_state.h:55
int grpc_connectivity_state_notify_on_state_change(grpc_connectivity_state_tracker *tracker, grpc_connectivity_state *current, grpc_iomgr_closure *notify)
Return 1 if the channel should start connecting, 0 otherwise.
Definition: connectivity_state.c:87
struct grpc_connectivity_state_watcher * next
we keep watchers in a linked list
Definition: connectivity_state.h:42
void grpc_connectivity_state_set_with_scheduler(grpc_connectivity_state_tracker *tracker, grpc_connectivity_state state, void(*scheduler)(void *arg, grpc_iomgr_closure *closure), void *arg, const char *reason)
Definition: connectivity_state.c:108
struct grpc_connectivity_state_watcher grpc_connectivity_state_watcher
grpc_connectivity_state_watcher * watchers
all our watchers
Definition: connectivity_state.h:53
void grpc_connectivity_state_set(grpc_connectivity_state_tracker *tracker, grpc_connectivity_state state, const char *reason)
Definition: connectivity_state.c:143
A closure over a grpc_iomgr_cb_func.
Definition: iomgr.h:45
grpc_iomgr_closure * notify
closure to notify on change
Definition: connectivity_state.h:44
grpc_connectivity_state grpc_connectivity_state_check(grpc_connectivity_state_tracker *tracker)
Definition: connectivity_state.c:82
grpc_connectivity_state * current
the current state as believed by the watcher
Definition: connectivity_state.h:46
void grpc_connectivity_state_destroy(grpc_connectivity_state_tracker *tracker)
Definition: connectivity_state.c:66
grpc_connectivity_state current_state
current connectivity state
Definition: connectivity_state.h:51
void grpc_connectivity_state_init(grpc_connectivity_state_tracker *tracker, grpc_connectivity_state init_state, const char *name)
Definition: connectivity_state.c:58
int grpc_connectivity_state_trace
Definition: connectivity_state.c:39
Definition: connectivity_state.h:40
Definition: connectivity_state.h:49