author | Francesco Romani <fromani@redhat.com> | |
Wed, 30 Nov 2016 08:19:42 +0000 (09:19 +0100) | ||
committer | Francesco Romani <fromani@redhat.com> | |
Wed, 30 Nov 2016 09:27:00 +0000 (10:27 +0100) | ||
commit | 2846042936e80c1f619936677fb04aa00a18cc25 | |
tree | bcc4120404f6ba1c102f353e467cf798256350b3 | tree | snapshot |
parent | 797ed5e5bee9ee89361f12e447ffc6ceb6ef79d2 | commit | diff |
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>
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 | diff | blob | history |