xwayland: Move Xwayland vidmode declaration
Move the Xwayland vidmode declaration to its own header file. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
parent
e8ba8a94e1
commit
808a0a038b
|
@ -29,6 +29,7 @@ Xwayland_SOURCES = \
|
|||
xwayland-cvt.c \
|
||||
xwayland-cvt.h \
|
||||
xwayland-vidmode.c \
|
||||
xwayland-vidmode.h \
|
||||
xwayland-window.c \
|
||||
xwayland-window.h \
|
||||
xwayland-window-buffers.c \
|
||||
|
|
|
@ -18,6 +18,7 @@ srcs = [
|
|||
'xwayland-cvt.c',
|
||||
'xwayland-cvt.h',
|
||||
'xwayland-vidmode.c',
|
||||
'xwayland-vidmode.h',
|
||||
'xwayland-window.c',
|
||||
'xwayland-window.h',
|
||||
'xwayland-window-buffers.c',
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "vidmodestr.h"
|
||||
|
||||
#include "xwayland-screen.h"
|
||||
#include "xwayland-vidmode.h"
|
||||
|
||||
static DevPrivateKeyRec xwlVidModePrivateKeyRec;
|
||||
#define xwlVidModePrivateKey (&xwlVidModePrivateKeyRec)
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (c) 1999-2003 by The XFree86 Project, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* Except as contained in this notice, the name of the copyright holder(s)
|
||||
* and author(s) shall not be used in advertising or otherwise to promote
|
||||
* the sale, use or other dealings in this Software without prior written
|
||||
* authorization from the copyright holder(s) and author(s).
|
||||
*/
|
||||
|
||||
#ifndef XWAYLAND_VIDMODE_H
|
||||
#define XWAYLAND_VIDMODE_H
|
||||
|
||||
#include <xwayland-config.h>
|
||||
|
||||
#ifdef XF86VIDMODE
|
||||
void xwlVidModeExtensionInit(void);
|
||||
#endif
|
||||
|
||||
#endif /* XWAYLAND_VIDMODE_H */
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "xwayland.h"
|
||||
#include "xwayland-screen.h"
|
||||
#include "xwayland-vidmode.h"
|
||||
|
||||
#ifdef XF86VIDMODE
|
||||
#include <X11/extensions/xf86vmproto.h>
|
||||
|
|
|
@ -50,10 +50,6 @@
|
|||
|
||||
#define MODIFIER_META 0x01
|
||||
|
||||
#ifdef XF86VIDMODE
|
||||
void xwlVidModeExtensionInit(void);
|
||||
#endif
|
||||
|
||||
#ifdef GLXEXT
|
||||
#include "glx_extinit.h"
|
||||
extern __GLXprovider glamor_provider;
|
||||
|
|
Loading…
Reference in New Issue