chromium/out/Default/gen/third_party/wayland-protocols/mesa/wayland-drm/wayland-drm-client-protocol.h

/* Generated by wayland-scanner 1.23.0 */

#ifndef DRM_CLIENT_PROTOCOL_H
#define DRM_CLIENT_PROTOCOL_H

#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"

#ifdef  __cplusplus
extern "C" {
#endif

/**
 * @page page_drm The drm protocol
 * @section page_ifaces_drm Interfaces
 * - @subpage page_iface_wl_drm - 
 * @section page_copyright_drm Copyright
 * <pre>
 *
 * Copyright © 2008-2011 Kristian Høgsberg
 * Copyright © 2010-2011 Intel Corporation
 *
 * Permission to use, copy, modify, distribute, and sell this
 * software and its documentation for any purpose is hereby granted
 * without fee, provided that\n the above copyright notice appear in
 * all copies and that both that copyright notice and this permission
 * notice appear in supporting documentation, and that the name of
 * the copyright holders not be used in advertising or publicity
 * pertaining to distribution of the software without specific,
 * written prior permission.  The copyright holders make no
 * representations about the suitability of this software for any
 * purpose.  It is provided "as is" without express or implied
 * warranty.
 *
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
 * THIS SOFTWARE.
 * </pre>
 */
struct wl_buffer;
struct wl_drm;

#ifndef WL_DRM_INTERFACE
#define WL_DRM_INTERFACE
/**
 * @page page_iface_wl_drm wl_drm
 * @section page_iface_wl_drm_api API
 * See @ref iface_wl_drm.
 */
/**
 * @defgroup iface_wl_drm The wl_drm interface
 */
extern const struct wl_interface wl_drm_interface;
#endif

#ifndef WL_DRM_ERROR_ENUM
#define WL_DRM_ERROR_ENUM
enum wl_drm_error {};
#endif /* WL_DRM_ERROR_ENUM */

#ifndef WL_DRM_FORMAT_ENUM
#define WL_DRM_FORMAT_ENUM
enum wl_drm_format {};
#endif /* WL_DRM_FORMAT_ENUM */

#ifndef WL_DRM_CAPABILITY_ENUM
#define WL_DRM_CAPABILITY_ENUM
/**
 * @ingroup iface_wl_drm
 * wl_drm capability bitmask
 *
 * Bitmask of capabilities.
 */
enum wl_drm_capability {};
#endif /* WL_DRM_CAPABILITY_ENUM */

/**
 * @ingroup iface_wl_drm
 * @struct wl_drm_listener
 */
struct wl_drm_listener {};

/**
 * @ingroup iface_wl_drm
 */
static inline int
wl_drm_add_listener(struct wl_drm *wl_drm,
		    const struct wl_drm_listener *listener, void *data)
{}

#define WL_DRM_AUTHENTICATE
#define WL_DRM_CREATE_BUFFER
#define WL_DRM_CREATE_PLANAR_BUFFER
#define WL_DRM_CREATE_PRIME_BUFFER

/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_DEVICE_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_FORMAT_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_AUTHENTICATED_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_CAPABILITIES_SINCE_VERSION

/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_AUTHENTICATE_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_CREATE_BUFFER_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_CREATE_PLANAR_BUFFER_SINCE_VERSION
/**
 * @ingroup iface_wl_drm
 */
#define WL_DRM_CREATE_PRIME_BUFFER_SINCE_VERSION

/** @ingroup iface_wl_drm */
static inline void
wl_drm_set_user_data(struct wl_drm *wl_drm, void *user_data)
{}

/** @ingroup iface_wl_drm */
static inline void *
wl_drm_get_user_data(struct wl_drm *wl_drm)
{}

static inline uint32_t
wl_drm_get_version(struct wl_drm *wl_drm)
{}

/** @ingroup iface_wl_drm */
static inline void
wl_drm_destroy(struct wl_drm *wl_drm)
{}

/**
 * @ingroup iface_wl_drm
 */
static inline void
wl_drm_authenticate(struct wl_drm *wl_drm, uint32_t id)
{}

/**
 * @ingroup iface_wl_drm
 */
static inline struct wl_buffer *
wl_drm_create_buffer(struct wl_drm *wl_drm, uint32_t name, int32_t width, int32_t height, uint32_t stride, uint32_t format)
{}

/**
 * @ingroup iface_wl_drm
 */
static inline struct wl_buffer *
wl_drm_create_planar_buffer(struct wl_drm *wl_drm, uint32_t name, int32_t width, int32_t height, uint32_t format, int32_t offset0, int32_t stride0, int32_t offset1, int32_t stride1, int32_t offset2, int32_t stride2)
{}

/**
 * @ingroup iface_wl_drm
 */
static inline struct wl_buffer *
wl_drm_create_prime_buffer(struct wl_drm *wl_drm, int32_t name, int32_t width, int32_t height, uint32_t format, int32_t offset0, int32_t stride0, int32_t offset1, int32_t stride1, int32_t offset2, int32_t stride2)
{}

#ifdef  __cplusplus
}
#endif

#endif