mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Revert "Remove protocol/wayland.dtd"
This reverts commit 06fb8bd371.
Having a DTD hooked up gives an indication of what we expect the protocol to
be, which is a clearer documentation than the current "whatever scanner.c
manages to parse".
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
c7bada036d
commit
9d794d9f77
2 changed files with 31 additions and 2 deletions
|
|
@ -16,8 +16,8 @@ dist_aclocal_DATA = wayland-scanner.m4
|
|||
|
||||
dist_pkgdata_DATA = \
|
||||
wayland-scanner.mk \
|
||||
protocol/wayland.xml
|
||||
|
||||
protocol/wayland.xml \
|
||||
protocol/wayland.dtd
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA =
|
||||
|
|
|
|||
29
protocol/wayland.dtd
Normal file
29
protocol/wayland.dtd
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!ELEMENT protocol (copyright?, interface+)>
|
||||
<!ATTLIST protocol name CDATA #REQUIRED>
|
||||
<!ELEMENT copyright (#PCDATA)>
|
||||
<!ELEMENT interface (description?,(request|event|enum)+)>
|
||||
<!ATTLIST interface name CDATA #REQUIRED>
|
||||
<!ATTLIST interface version CDATA #REQUIRED>
|
||||
<!ELEMENT request (description?,arg*)>
|
||||
<!ATTLIST request name CDATA #REQUIRED>
|
||||
<!ATTLIST request type CDATA #IMPLIED>
|
||||
<!ATTLIST request since CDATA #IMPLIED>
|
||||
<!ELEMENT event (description?,arg*)>
|
||||
<!ATTLIST event name CDATA #REQUIRED>
|
||||
<!ATTLIST event since CDATA #IMPLIED>
|
||||
<!ELEMENT enum (description?,entry*)>
|
||||
<!ATTLIST enum name CDATA #REQUIRED>
|
||||
<!ATTLIST enum since CDATA #IMPLIED>
|
||||
<!ELEMENT entry (description?)>
|
||||
<!ATTLIST entry name CDATA #REQUIRED>
|
||||
<!ATTLIST entry value CDATA #REQUIRED>
|
||||
<!ATTLIST entry summary CDATA #IMPLIED>
|
||||
<!ATTLIST entry since CDATA #IMPLIED>
|
||||
<!ELEMENT arg (description?)>
|
||||
<!ATTLIST arg name CDATA #REQUIRED>
|
||||
<!ATTLIST arg type CDATA #REQUIRED>
|
||||
<!ATTLIST arg summary CDATA #IMPLIED>
|
||||
<!ATTLIST arg interface CDATA #IMPLIED>
|
||||
<!ATTLIST arg allow-null CDATA #IMPLIED>
|
||||
<!ELEMENT description (#PCDATA)>
|
||||
<!ATTLIST description summary CDATA #REQUIRED>
|
||||
Loading…
Add table
Add a link
Reference in a new issue