[PATCH wayland 6/7] doc: Improve "Library" chapter, moving "Types of Compositor" as its section

Tiago Vignatti tiago.vignatti at intel.com
Tue Nov 13 13:28:47 PST 2012


It was added a "Server API" section and "Types of Compositor" was moved there
also. I hope this gives a better structure for the documentation.

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 doc/Wayland/en_US/Compositors.xml |   25 +++++++++++++++++++++++--
 doc/Wayland/en_US/Library.xml     |   27 +++++++++++++++++++++++++++
 doc/Wayland/en_US/Wayland.xml     |    1 -
 3 files changed, 50 insertions(+), 3 deletions(-)

diff --git a/doc/Wayland/en_US/Compositors.xml b/doc/Wayland/en_US/Compositors.xml
index d5311fa..4307f26 100644
--- a/doc/Wayland/en_US/Compositors.xml
+++ b/doc/Wayland/en_US/Compositors.xml
@@ -3,8 +3,23 @@
 <!ENTITY % BOOK_ENTITIES SYSTEM "Wayland.ent">
 %BOOK_ENTITIES;
 ]>
-<chapter id="chap-Compositors">
+<section id="sect-Compositors">
   <title>Types of Compositors</title>
+
+  <para>
+  Different types of compositors may exist on different systems. For
+  instance, a <emphasis>system compositor</emphasis> can be used for booting
+  up the system, later handling multiple user switching, a possible console
+  terminal emulator and so forth, and then another <emphasis>session
+  compositor</emphasis> would provide the actual desktop environment. There
+  are actually many ways to stack and coexist different types of compositors
+  and they all depend what is the system requirement.
+  </para>
+  <para>
+  In this section, we introduce three types of Wayland compositors relying on
+  <emphasis>libwayland-server</emphasis>.
+  </para>
+
   <section id="sect-Compositors-System-Compositor">
     <title>System Compositor</title>
     <para>
@@ -86,6 +101,12 @@
 	</listitem>
 	<listitem>
 	  <para>
+	    Weston with X11 or Wayland backend is a session compositor nested
+	    in another session compositor.
+	  </para>
+	</listitem>
+	<listitem>
+	  <para>
 	    fullscreen X session under wayland
 	  </para>
 	</listitem>
@@ -135,4 +156,4 @@
       </itemizedlist>
     </para>
   </section>
-</chapter>
+</section>
diff --git a/doc/Wayland/en_US/Library.xml b/doc/Wayland/en_US/Library.xml
index ab325d6..efe5597 100644
--- a/doc/Wayland/en_US/Library.xml
+++ b/doc/Wayland/en_US/Library.xml
@@ -5,5 +5,32 @@
 ]>
 <chapter id="chap-Library">
   <title>Wayland Library</title>
+
+  <para>
+  The open-source reference implementation of Wayland protocol is split in two
+  C libraries, <emphasis>libwayland-server</emphasis> and
+  <emphasis>libwayland-client</emphasis>. Their main
+  responsibility is to handle the Inter-process communication
+  (<emphasis>IPC</emphasis>) with each other, therefore guaranteeing the
+  protocol objects marshaling and messages synchronization.
+  </para>
+
+  <para>
+  This Chapter describes in detail each library's methods and their helpers,
+  aiming implementors who can use for building Wayland clients and servers;
+  respectively at <xref linkend="sect-Library-Client"/> and
+  <xref linkend="sect-Library-Server"/>. The last
+  <xref linkend="sect-Compositors"/>, gives an example how
+  <emphasis>libwayland-server</emphasis> can be used for building different
+  types of compositors.
+  </para>
+
   <xi:include href="WaylandClientAPI.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
+  <section id="sect-Library-Server">
+  <title>Server API</title>
+  <para>TODO</para>
+  </section>
+
+  <xi:include href="Compositors.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 </chapter>
diff --git a/doc/Wayland/en_US/Wayland.xml b/doc/Wayland/en_US/Wayland.xml
index e240512..845634b 100644
--- a/doc/Wayland/en_US/Wayland.xml
+++ b/doc/Wayland/en_US/Wayland.xml
@@ -11,7 +11,6 @@
   <xi:include href="Architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
   <xi:include href="Protocol.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
   <xi:include href="Library.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
-  <xi:include href="Compositors.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
   <xi:include href="ProtocolSpec.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
 </book>
 
-- 
1.7.9.5



More information about the wayland-devel mailing list