tools/xenstored: Introduce lu_get_connection() and use it
authorJulien Grall <jgrall@amazon.com>
Thu, 24 Jun 2021 08:02:59 +0000 (09:02 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 24 Jun 2021 08:02:59 +0000 (09:02 +0100)
commit3ce271ef535cfe3c0839fdea56f33abf5fdbf23c
tree66a4698f4a0c5a1a8b238b7b25b70766b926c4fd
parent82b1b19469cb5595c589898c26b5f33f37f90963
tools/xenstored: Introduce lu_get_connection() and use it

At the moment, dump_state_buffered_data() is taking two connections
in parameters (one is the connection to dump, the other is the
connection used to request LU). The naming doesn't help to
distinguish (c vs conn) them and this already lead to several mistake
while modifying the function.

To remove the confusion, introduce an help lu_get_connection() that
will return the connection used to request LU and use it
in place of the existing parameter.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_control.h
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_domain.h