X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fjsonrpc.h;h=5100d7474baf8274cc06941d93a38c1d442c5f7f;hb=05bfbcb693680794c5a0398587a7da6b46b3e3f5;hp=154c459afb615314ba8152cd93de7c6e7e5df0a2;hpb=0d11f523a371910cb0ed5549a85836f83a7552c2;p=sliver-openvswitch.git diff --git a/lib/jsonrpc.h b/lib/jsonrpc.h index 154c459af..5100d7474 100644 --- a/lib/jsonrpc.h +++ b/lib/jsonrpc.h @@ -26,6 +26,7 @@ struct json; struct jsonrpc_msg; struct pstream; +struct reconnect_stats; struct stream; /* API for a JSON-RPC stream. */ @@ -113,6 +114,15 @@ void jsonrpc_session_recv_wait(struct jsonrpc_session *); bool jsonrpc_session_is_alive(const struct jsonrpc_session *); bool jsonrpc_session_is_connected(const struct jsonrpc_session *); unsigned int jsonrpc_session_get_seqno(const struct jsonrpc_session *); +int jsonrpc_session_get_status(const struct jsonrpc_session *); +void jsonrpc_session_get_reconnect_stats(const struct jsonrpc_session *, + struct reconnect_stats *); + void jsonrpc_session_force_reconnect(struct jsonrpc_session *); +void jsonrpc_session_set_max_backoff(struct jsonrpc_session *, + int max_backofF); +void jsonrpc_session_set_probe_interval(struct jsonrpc_session *, + int probe_interval); + #endif /* jsonrpc.h */