virt plugin: Factor the read state into a struct
authorFrancesco Romani <fromani@redhat.com>
Wed, 30 Nov 2016 08:19:42 +0000 (09:19 +0100)
committerFrancesco Romani <fromani@redhat.com>
Wed, 30 Nov 2016 09:27:00 +0000 (10:27 +0100)
commit2846042936e80c1f619936677fb04aa00a18cc25
treebcc4120404f6ba1c102f353e467cf798256350b3
parent797ed5e5bee9ee89361f12e447ffc6ceb6ef79d2
virt plugin: Factor the read state into a struct

The lv_read function needs some bookkeeping data to track which
domain, block interface and network interface should be polled
for new data.

This patch factors out this data, previously scattered as module
globals, in a new struct. This makes the code a little tidier
and more reusable.

Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c