tools/xenstore: move per connection read and write func hooks into a struct
authorJuergen Gross <jgross@suse.com>
Tue, 18 May 2021 06:19:06 +0000 (08:19 +0200)
committerJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 12:51:23 +0000 (13:51 +0100)
commit8b9890e1c0f5b35c199f40eb4e6cd0ce6c34829b
tree338516343e0b6dbef3fc50129cc41dcc4dfe693f
parent3ac8835a80b27fc4e7116dbde78d3eececc66fc9
tools/xenstore: move per connection read and write func hooks into a struct

Put the interface type specific functions into an own structure and let
struct connection contain only a pointer to that new function vector.

Don't even define the socket based functions in case of NO_SOCKETS
(Mini-OS).

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