tools/xenstore: refactor XS_CONTROL handling
authorJuergen Gross <jgross@suse.com>
Wed, 13 Jan 2021 13:00:17 +0000 (14:00 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 21 Jan 2021 16:29:41 +0000 (17:29 +0100)
commit7104017a130cba11fd807c23f804dd8eeec0d976
treebcf9b9c5841c7269cbbc6de06e4bdf63f5b2c0dd
parent9cd5bbf5369d520aacca9a1b141e9a84f62d507d
tools/xenstore: refactor XS_CONTROL handling

In order to allow control commands with binary data refactor handling
of XS_CONTROL:

- get primary command first
- add maximum number of additional parameters to pass to command
  handler

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h