scanner: allow element-type and enum on array args

This allows an element type and an enum to optionally be specified on
array args in protocol xml.

If an enum is specified the element type is required and is subject to
the same restrictions as a the type of a non-array argument with an enum
specified.

Signed-off-by: Isaac Freund <mail@isaacfreund.com>
This commit is contained in:
Isaac Freund 2023-03-03 22:02:33 +01:00
parent 344d31f871
commit c739b975ad
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 49 additions and 2 deletions

View file

@ -28,5 +28,6 @@
<!ATTLIST arg interface CDATA #IMPLIED>
<!ATTLIST arg allow-null CDATA #IMPLIED>
<!ATTLIST arg enum CDATA #IMPLIED>
<!ATTLIST arg element-type CDATA #IMPLIED>
<!ELEMENT description (#PCDATA)>
<!ATTLIST description summary CDATA #REQUIRED>