public/io: xs_wire: Document that new errors should be added at the end
authorJulien Grall <jgrall@amazon.com>
Fri, 1 Jul 2022 17:27:05 +0000 (18:27 +0100)
committerJulien Grall <jgrall@amazon.com>
Fri, 1 Jul 2022 17:27:30 +0000 (18:27 +0100)
commitbf2f989531ad3851685a1847cbc1e28901ed80a2
tree5fb9ca5c8ccc9f13c98f9a47217c22b53d7d5dca
parentee11f092b515bf3c926eaad053d12d3f2b6e593e
public/io: xs_wire: Document that new errors should be added at the end

Some tools (e.g. xenstored) always expect EINVAL to be first in xsd_errors.

To be conservative, mandate that new errors should be added at the end
of the array.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/xs_wire.h