]> xenbits.xensource.com Git - libvirt.git/commit
virnetdaemon: Extract autoShutdownTimer operations from virNetDaemonRun
authorPeter Krempa <pkrempa@redhat.com>
Mon, 13 Jun 2022 11:58:13 +0000 (13:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Jul 2022 12:35:30 +0000 (14:35 +0200)
commitfbc18725f20b68950d56f49f7bfeb4c08846f8b2
tree5c04b52a97ba33859e13d4d2f38b7773a0a8ca73
parentcc161c26d0e9b90eed3a4de2e8cfee265dc8f3b5
virnetdaemon: Extract autoShutdownTimer operations from virNetDaemonRun

Introduce 'virNetDaemonShutdownTimerRegister' and
'virNetDaemonShutdownTimerUpdate' to aggregate the code to deal with the
auto-shutdown timer.

The code is also placed so that it can be called from
'virNetDaemonAutoShutdown' which involved the move of
'virNetDaemonAutoShutdownTimer'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/virnetdaemon.c