~robert-ancell/lightdm/weston-compositor-merge

« back to all changes in this revision

Viewing changes to src/weston-protocol.xml

  • Committer: Robert Ancell
  • Date: 2012-07-05 04:55:42 UTC
  • Revision ID: robert.ancell@canonical.com-20120705045542-dd1dopowti68gtwm
First work on supporting a weston system compositor

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<protocol name="dislpay_manager">
 
2
  <interface name="wl_system_client" version="1">
 
3
    <request name="terminate" type="destructor">
 
4
      <description summary="disconnect a client">
 
5
        Disconnect a client's connection to the system compositor, and
 
6
        destroy its associated resources.
 
7
      </description>
 
8
    </request>
 
9
    <event name="ready">
 
10
      <description summary="client ready">
 
11
        Sent when the system compositor has determined a client is ready to
 
12
        be switched to. Generally this means that the client has attached
 
13
        the first buffer to its surface.
 
14
      </description>
 
15
    </event>
 
16
    <event name="client_disconnected">
 
17
      <!-- Need disconnect reason? -->
 
18
    </event>
 
19
  </interface>
 
20
 
 
21
  <interface name="wl_display_manager" version="1">
 
22
    <description summary="Manage multiple users' displays">
 
23
      The display manager can use this interface to manage the system
 
24
      compositor. It has requests to add new clients, to transition between
 
25
      clients.
 
26
      
 
27
      All clients of the system compositor are assumed to be fullscreen.
 
28
      With the exception of transitions, the compositor will generally
 
29
      display only a single client at once.
 
30
    </description>
 
31
    
 
32
    <request name="add_client">
 
33
      <description summary="add a new system client">
 
34
        This adds a new client to the system compositor. The system
 
35
        compositor will listen to requests from the new client on the passed
 
36
        fd.
 
37
      </description>
 
38
      <arg name="id" type="new_id" interface="wl_system_client"/>
 
39
      <arg name="fd" type="fd"/>
 
40
      <!-- Possibly need user, and display manager cookie? -->
 
41
    </request>
 
42
 
 
43
    <request name="switch_to_client">
 
44
      <description summary="switch to client">
 
45
        This request switches input and display focus to a different client.
 
46
        The compositor may perform some transition animation between the two
 
47
        clients, such as a crossfade or cube animation. During the transition
 
48
        no client will have input focus.
 
49
      </description>
 
50
      <arg name="id" type="object" interface="wl_system_client"/>
 
51
      <!-- Possibly need to specify transition options? -->
 
52
    </request>
 
53
  </interface>
 
54
</protocol>
 
55
    
 
56