wayland/doc/publican
Auke Booij 7ccf35d432 protocol: add support for cross-interface enum attributes
The enum attribute, for which scanner support was introduced in
1771299, can be used to link message arguments to <enum>s. However,
some arguments refer to <enum>s in a different <interface>.

This adds scanner support for referring to an <enum> in a different
<interface> using dot notation. It also sets the attributes in this
style in the wayland XML protocol (wl_shm_pool::create_buffer::format
to wl_shm::format, and wl_surface::set_buffer_transform::transform to
wl_output::transform), and updates the documentation XSL so that this
new style is supported.

Changes since v2:
 - add object:: prefix for all enumerations in the documentation
 - fix whitespace in scanner.c
 - minor code fixup to return early and avoid casts in scanner.c

Changes since v1:
 - several implementation bugs fixed

Signed-off-by: Auke Booij <auke@tulcod.com>
Reviewed-by: Nils Christopher Brause <nilschrbrause@googlemail.com>
Reviewed-by: Bill Spitzak <spitzak@gmail.com>
[Pekka: rebased across cde251a124]
[Pekka: wrap lines and space fixes in scanner.c]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2016-05-03 14:54:11 +03:00
..
sources doc: fix typos 2016-05-02 17:46:32 -07:00
.gitignore doc: rename "Wayland" to "publican" 2013-04-03 15:44:50 -04:00
doxygen-to-publican.xsl doc: Intro text for doxygen output in it's own file 2015-01-29 17:13:01 -08:00
Makefile.am doc: Fix out-of-tree build and also distcheck 2015-01-30 18:58:08 -08:00
merge-mapcoords.xsl doc: Create hot-linked areas in documents. 2015-01-28 17:43:18 -08:00
protocol-interfaces-to-docbook.xsl doc: removed the word "interface" from the link names 2014-12-19 16:15:29 +02:00
protocol-to-docbook.xsl protocol: add support for cross-interface enum attributes 2016-05-03 14:54:11 +03:00