iothread: use IOThreadParamInfo in iothread_[set|get]_param()
commit1cc7eada97914f090125e588497986f6f7900514
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 27 Jul 2021 14:59:36 +0000 (27 16:59 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Oct 2021 14:29:50 +0000 (7 15:29 +0100)
treea1ffac217f3694318a33b0cd0880cf460980e172
parentf0ed36a64f1750a0ebc5d2a5437f4740985461d7
iothread: use IOThreadParamInfo in iothread_[set|get]_param()

Commit 0445409d74 ("iothread: generalize
iothread_set_param/iothread_get_param") moved common code to set and
get IOThread parameters in two new functions.

These functions are called inside callbacks, so we don't need to use an
opaque pointer. Let's replace `void *opaque` parameter with
`IOThreadParamInfo *info`.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210727145936.147032-3-sgarzare@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
iothread.c