mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 04:08:02 +02:00
Rename GLX module to libglxext
This commit is contained in:
parent
5c9ccd4e59
commit
4341944d09
6 changed files with 177 additions and 7 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2006-03-28 David Reveman <davidr@novell.com>
|
||||
|
||||
* hw/xgl/glxext/module/Makefile.am:
|
||||
* hw/xgl/xglglx.c (xglLoadGLXModules): Changed GLX module name
|
||||
from libglx to libglxext to avoid conflicts.
|
||||
|
||||
2006-03-21 David Reveman <davidr@novell.com>
|
||||
|
||||
* configure.ac: xglx requires xkbfile.
|
||||
|
|
|
|||
55
hw/xfree86/dixmods/xkbKillSrv.c
Normal file
55
hw/xfree86/dixmods/xkbKillSrv.c
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/* $Xorg: ddxKillSrv.c,v 1.3 2000/08/17 19:53:46 cpqbld Exp $ */
|
||||
/************************************************************
|
||||
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
|
||||
|
||||
Permission to use, copy, modify, and distribute this
|
||||
software and its documentation for any purpose and without
|
||||
fee is hereby granted, provided that 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 Silicon Graphics not be
|
||||
used in advertising or publicity pertaining to distribution
|
||||
of the software without specific prior written permission.
|
||||
Silicon Graphics makes no representation about the suitability
|
||||
of this software for any purpose. It is provided "as is"
|
||||
without any express or implied warranty.
|
||||
|
||||
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
||||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
|
||||
GRAPHICS 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.
|
||||
|
||||
********************************************************/
|
||||
/* $XFree86: xc/programs/Xserver/xkb/ddxKillSrv.c,v 1.3 2002/11/23 19:27:50 tsi Exp $ */
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XORG_CONFIG_H
|
||||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#define NEED_EVENTS 1
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/keysym.h>
|
||||
#include "inputstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "windowstr.h"
|
||||
#include <X11/extensions/XKBsrv.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
|
||||
#include "xf86.h"
|
||||
|
||||
int
|
||||
XkbDDXTerminateServer(DeviceIntPtr dev,KeyCode key,XkbAction *act)
|
||||
{
|
||||
xf86ProcessActionEvent(ACTION_TERMINATE, NULL);
|
||||
return 0;
|
||||
}
|
||||
42
hw/xfree86/dixmods/xkbPrivate.c
Normal file
42
hw/xfree86/dixmods/xkbPrivate.c
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/* $XFree86: xc/programs/Xserver/xkb/ddxPrivate.c,v 1.2 2003/04/03 16:20:22 dawes Exp $ */
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XORG_CONFIG_H
|
||||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#define NEED_EVENTS 1
|
||||
#include <X11/X.h>
|
||||
#include "windowstr.h"
|
||||
#define XKBSRV_NEED_FILE_FUNCS
|
||||
#include <X11/extensions/XKBsrv.h>
|
||||
|
||||
#include "xf86.h"
|
||||
|
||||
int
|
||||
XkbDDXPrivate(DeviceIntPtr dev,KeyCode key,XkbAction *act)
|
||||
{
|
||||
XkbAnyAction *xf86act = &(act->any);
|
||||
char msgbuf[XkbAnyActionDataSize+1];
|
||||
|
||||
if (xf86act->type == XkbSA_XFree86Private) {
|
||||
memcpy(msgbuf, xf86act->data, XkbAnyActionDataSize);
|
||||
msgbuf[XkbAnyActionDataSize]= '\0';
|
||||
if (strcmp(msgbuf, "-vmode")==0)
|
||||
xf86ProcessActionEvent(ACTION_PREV_MODE, NULL);
|
||||
else if (strcmp(msgbuf, "+vmode")==0)
|
||||
xf86ProcessActionEvent(ACTION_NEXT_MODE, NULL);
|
||||
else if (strcmp(msgbuf, "ungrab")==0)
|
||||
xf86ProcessActionEvent(ACTION_DISABLEGRAB, NULL);
|
||||
else if (strcmp(msgbuf, "clsgrb")==0)
|
||||
xf86ProcessActionEvent(ACTION_CLOSECLIENT, NULL);
|
||||
else
|
||||
xf86ProcessActionEvent(ACTION_MESSAGE, (void *) msgbuf);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
67
hw/xfree86/dixmods/xkbVT.c
Normal file
67
hw/xfree86/dixmods/xkbVT.c
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/* $Xorg: ddxVT.c,v 1.3 2000/08/17 19:53:46 cpqbld Exp $ */
|
||||
/************************************************************
|
||||
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
|
||||
|
||||
Permission to use, copy, modify, and distribute this
|
||||
software and its documentation for any purpose and without
|
||||
fee is hereby granted, provided that 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 Silicon Graphics not be
|
||||
used in advertising or publicity pertaining to distribution
|
||||
of the software without specific prior written permission.
|
||||
Silicon Graphics makes no representation about the suitability
|
||||
of this software for any purpose. It is provided "as is"
|
||||
without any express or implied warranty.
|
||||
|
||||
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
||||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
|
||||
GRAPHICS 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.
|
||||
|
||||
********************************************************/
|
||||
/* $XFree86: xc/programs/Xserver/xkb/ddxVT.c,v 1.3 2002/11/23 19:27:50 tsi Exp $ */
|
||||
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XORG_CONFIG_H
|
||||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#define NEED_EVENTS 1
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/keysym.h>
|
||||
#include "inputstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "windowstr.h"
|
||||
#include <X11/extensions/XKBsrv.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
|
||||
#include "xf86.h"
|
||||
|
||||
int
|
||||
XkbDDXSwitchScreen(DeviceIntPtr dev,KeyCode key,XkbAction *act)
|
||||
{
|
||||
int scrnnum = XkbSAScreen(&act->screen);
|
||||
|
||||
if (act->screen.flags & XkbSA_SwitchApplication) {
|
||||
if (act->screen.flags & XkbSA_SwitchAbsolute)
|
||||
xf86ProcessActionEvent(ACTION_SWITCHSCREEN,(void *) &scrnnum);
|
||||
else {
|
||||
if (scrnnum < 0)
|
||||
xf86ProcessActionEvent(ACTION_SWITCHSCREEN_PREV,NULL);
|
||||
else
|
||||
xf86ProcessActionEvent(ACTION_SWITCHSCREEN_NEXT,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -5,12 +5,12 @@ AM_CFLAGS = \
|
|||
$(XGLMODULES_CFLAGS) \
|
||||
-I$(top_srcdir)/hw/xgl
|
||||
|
||||
libglx_la_LDFLAGS = -avoid-version
|
||||
libglx_la_SOURCES = glxmodule.c
|
||||
libglx_la_LIBADD = $(top_builddir)/GL/glx/libglx.la \
|
||||
$(top_builddir)/GL/mesa/libGLcore.la
|
||||
libglx_modules = libglx.la
|
||||
libglxext_la_LDFLAGS = -avoid-version
|
||||
libglxext_la_SOURCES = glxmodule.c
|
||||
libglxext_la_LIBADD = $(top_builddir)/GL/glx/libglx.la \
|
||||
$(top_builddir)/GL/mesa/libGLcore.la
|
||||
libglxext_modules = libglxext.la
|
||||
|
||||
moduledir = @XGL_MODULE_PATH@
|
||||
|
||||
module_LTLIBRARIES = $(libglx_modules)
|
||||
module_LTLIBRARIES = $(libglxext_modules)
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ xglLoadGLXModules (void)
|
|||
SYM (__GlxGetMesaProvider, "GlxGetMesaProvider")
|
||||
};
|
||||
|
||||
glXHandle = xglLoadModule ("glx", RTLD_NOW | RTLD_LOCAL);
|
||||
glXHandle = xglLoadModule ("glxext", RTLD_NOW | RTLD_LOCAL);
|
||||
if (!glXHandle)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue