Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright © 2008-2011 Kristian Høgsberg
  3.  * Copyright © 2010-2011 Intel Corporation
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this
  6.  * software and its documentation for any purpose is hereby granted
  7.  * without fee, provided that\n the above copyright notice appear in
  8.  * all copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation, and that the name of
  10.  * the copyright holders not be used in advertising or publicity
  11.  * pertaining to distribution of the software without specific,
  12.  * written prior permission.  The copyright holders make no
  13.  * representations about the suitability of this software for any
  14.  * purpose.  It is provided "as is" without express or implied
  15.  * warranty.
  16.  *
  17.  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  18.  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  19.  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
  20.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  21.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  22.  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  24.  * THIS SOFTWARE.
  25.  */
  26.  
  27. #include <stdlib.h>
  28. #include <stdint.h>
  29. #include "wayland-util.h"
  30.  
  31. extern const struct wl_interface wl_buffer_interface;
  32.  
  33. static const struct wl_interface *types[] = {
  34.         NULL,
  35.         &wl_buffer_interface,
  36.         NULL,
  37.         NULL,
  38.         NULL,
  39.         NULL,
  40.         NULL,
  41.         &wl_buffer_interface,
  42.         NULL,
  43.         NULL,
  44.         NULL,
  45.         NULL,
  46.         NULL,
  47.         NULL,
  48.         NULL,
  49.         NULL,
  50.         NULL,
  51.         NULL,
  52.         &wl_buffer_interface,
  53.         NULL,
  54.         NULL,
  55.         NULL,
  56.         NULL,
  57.         NULL,
  58.         NULL,
  59.         NULL,
  60.         NULL,
  61.         NULL,
  62.         NULL,
  63. };
  64.  
  65. static const struct wl_message wl_drm_requests[] = {
  66.         { "authenticate", "u", types + 0 },
  67.         { "create_buffer", "nuiiuu", types + 1 },
  68.         { "create_planar_buffer", "nuiiuiiiiii", types + 7 },
  69.         { "create_prime_buffer", "2nhiiuiiiiii", types + 18 },
  70. };
  71.  
  72. static const struct wl_message wl_drm_events[] = {
  73.         { "device", "s", types + 0 },
  74.         { "format", "u", types + 0 },
  75.         { "authenticated", "", types + 0 },
  76.         { "capabilities", "u", types + 0 },
  77. };
  78.  
  79. WL_EXPORT const struct wl_interface wl_drm_interface = {
  80.         "wl_drm", 2,
  81.         4, wl_drm_requests,
  82.         4, wl_drm_events,
  83. };
  84.  
  85.