Tizen 2.0 Release
[profile/ivi/osmesa.git] / src / egl / wayland / wayland-drm / protocol / wayland-drm.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <protocol name="drm">
3
4   <copyright>
5     Copyright © 2008-2011 Kristian Høgsberg
6     Copyright © 2010-2011 Intel Corporation
7
8     Permission to use, copy, modify, distribute, and sell this
9     software and its documentation for any purpose is hereby granted
10     without fee, provided that\n the above copyright notice appear in
11     all copies and that both that copyright notice and this permission
12     notice appear in supporting documentation, and that the name of
13     the copyright holders not be used in advertising or publicity
14     pertaining to distribution of the software without specific,
15     written prior permission.  The copyright holders make no
16     representations about the suitability of this software for any
17     purpose.  It is provided "as is" without express or implied
18     warranty.
19
20     THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
21     SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
22     FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
23     SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24     WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
25     AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
26     ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
27     THIS SOFTWARE.
28   </copyright>
29
30   <!-- drm support. This object is created by the server and published
31        using the display's global event. -->
32   <interface name="wl_drm" version="1">
33     <enum name="error">
34       <entry name="authenticate_fail" value="0"/>
35       <entry name="invalid_visual" value="1"/>
36       <entry name="invalid_name" value="2"/>
37     </enum>
38
39     <!-- Call this request with the magic received from drmGetMagic().
40          It will be passed on to the drmAuthMagic() or
41          DRIAuthConnection() call.  This authentication must be
42          completed before create_buffer could be used. -->
43     <request name="authenticate">
44       <arg name="id" type="uint"/>
45     </request>
46
47     <!-- Create a wayland buffer for the named DRM buffer.  The DRM
48          surface must have a name using the flink ioctl -->
49     <request name="create_buffer">
50       <arg name="id" type="new_id" interface="wl_buffer"/>
51       <arg name="name" type="uint"/>
52       <arg name="width" type="int"/>
53       <arg name="height" type="int"/>
54       <arg name="stride" type="uint"/>
55       <arg name="visual" type="object" interface="wl_visual"/>
56     </request>
57
58     <!-- Notification of the path of the drm device which is used by
59          the server.  The client should use this device for creating
60          local buffers.  Only buffers created from this device should
61          be be passed to the server using this drm object's
62          create_buffer request. -->
63     <event name="device">
64       <arg name="name" type="string"/>
65     </event>
66
67     <!-- Raised if the authenticate request succeeded -->
68     <event name="authenticated"/>
69   </interface>
70
71 </protocol>