The previous commit removed the only usage of ``all'' parameter in
virKeepAliveStopInternal, which was actually the only reason for having
virKeepAliveStopInternal. This effectively reverts most of commit
6446a9e20cc65561ce6061742baf35a3a63d5ba1.
probe rpc_keepalive_ref(void *ka, void *client, int refs);
probe rpc_keepalive_free(void *ka, void *client, int refs);
probe rpc_keepalive_start(void *ka, void *client, int interval, int count);
- probe rpc_keepalive_stop(void *ka, void *client, bool all);
+ probe rpc_keepalive_stop(void *ka, void *client);
probe rpc_keepalive_send(void *ka, void *client, int prog, int vers, int proc);
probe rpc_keepalive_received(void *ka, void *client, int prog, int vers, int proc);
probe rpc_keepalive_timeout(void *ka, void *client, int coundToDeath, int idle);
}
-static void
-virKeepAliveStopInternal(virKeepAlivePtr ka, bool all ATTRIBUTE_UNUSED)
+void
+virKeepAliveStop(virKeepAlivePtr ka)
{
virKeepAliveLock(ka);
PROBE(RPC_KEEPALIVE_STOP,
- "ka=%p client=%p all=%d",
- ka, ka->client, all);
+ "ka=%p client=%p",
+ ka, ka->client);
if (ka->timer > 0) {
virEventRemoveTimeout(ka->timer);
}
-void
-virKeepAliveStop(virKeepAlivePtr ka)
-{
- virKeepAliveStopInternal(ka, true);
-}
-
-
-void
-virKeepAliveStopSending(virKeepAlivePtr ka)
-{
- virKeepAliveStopInternal(ka, false);
-}
-
-
int
virKeepAliveTimeout(virKeepAlivePtr ka)
{
int interval,
unsigned int count);
void virKeepAliveStop(virKeepAlivePtr ka);
-void virKeepAliveStopSending(virKeepAlivePtr ka);
int virKeepAliveTimeout(virKeepAlivePtr ka);
bool virKeepAliveTrigger(virKeepAlivePtr ka,
virNetClientKeepAliveStop(virNetClientPtr client)
{
virNetClientLock(client);
- virKeepAliveStopSending(client->keepalive);
+ virKeepAliveStop(client->keepalive);
virNetClientUnlock(client);
}