2003-11-14 16:54:54 +01:00
|
|
|
/***********************************************************
|
|
|
|
|
|
|
|
Copyright 1987, 1989, 1998 The Open Group
|
|
|
|
|
|
|
|
Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
the above copyright notice appear in all copies and that both that
|
|
|
|
copyright notice and this permission notice appear in supporting
|
|
|
|
documentation.
|
|
|
|
|
|
|
|
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
|
|
|
|
OPEN GROUP 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 Open Group 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 Open Group.
|
|
|
|
|
|
|
|
|
|
|
|
Copyright 1987, 1989 by Digital Equipment Corporation, Maynard, Massachusetts.
|
|
|
|
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
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 Digital not be
|
|
|
|
used in advertising or publicity pertaining to distribution of the
|
|
|
|
software without specific, written prior permission.
|
|
|
|
|
|
|
|
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
|
|
|
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
|
|
|
DIGITAL 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.
|
|
|
|
|
|
|
|
******************************************************************/
|
2003-11-14 17:49:22 +01:00
|
|
|
|
2003-11-14 16:54:54 +01:00
|
|
|
#ifndef RESOURCE_H
|
|
|
|
#define RESOURCE_H 1
|
2005-07-03 10:53:54 +02:00
|
|
|
#include "misc.h"
|
2007-03-22 22:23:26 +01:00
|
|
|
#include "dixaccess.h"
|
2003-11-14 16:54:54 +01:00
|
|
|
|
|
|
|
/*****************************************************************
|
|
|
|
* STUFF FOR RESOURCES
|
|
|
|
*****************************************************************/
|
|
|
|
|
2007-03-01 21:00:02 +01:00
|
|
|
/* classes for Resource routines */
|
2003-11-14 16:54:54 +01:00
|
|
|
|
|
|
|
typedef unsigned long RESTYPE;
|
|
|
|
|
|
|
|
#define RC_VANILLA ((RESTYPE)0)
|
|
|
|
#define RC_CACHED ((RESTYPE)1<<31)
|
|
|
|
#define RC_DRAWABLE ((RESTYPE)1<<30)
|
|
|
|
/* Use class RC_NEVERRETAIN for resources that should not be retained
|
|
|
|
* regardless of the close down mode when the client dies. (A client's
|
|
|
|
* event selections on objects that it doesn't own are good candidates.)
|
|
|
|
* Extensions can use this too!
|
|
|
|
*/
|
|
|
|
#define RC_NEVERRETAIN ((RESTYPE)1<<29)
|
2007-03-08 18:13:36 +01:00
|
|
|
#define RC_LASTPREDEF RC_NEVERRETAIN
|
2003-11-14 16:54:54 +01:00
|
|
|
#define RC_ANY (~(RESTYPE)0)
|
|
|
|
|
|
|
|
/* types for Resource routines */
|
|
|
|
|
2007-08-14 17:39:26 +02:00
|
|
|
#define RT_WINDOW ((RESTYPE)1|RC_DRAWABLE)
|
|
|
|
#define RT_PIXMAP ((RESTYPE)2|RC_DRAWABLE)
|
|
|
|
#define RT_GC ((RESTYPE)3)
|
2003-11-14 17:49:22 +01:00
|
|
|
#undef RT_FONT
|
|
|
|
#undef RT_CURSOR
|
2003-11-14 16:54:54 +01:00
|
|
|
#define RT_FONT ((RESTYPE)4)
|
|
|
|
#define RT_CURSOR ((RESTYPE)5)
|
|
|
|
#define RT_COLORMAP ((RESTYPE)6)
|
|
|
|
#define RT_CMAPENTRY ((RESTYPE)7)
|
|
|
|
#define RT_OTHERCLIENT ((RESTYPE)8|RC_NEVERRETAIN)
|
|
|
|
#define RT_PASSIVEGRAB ((RESTYPE)9|RC_NEVERRETAIN)
|
|
|
|
#define RT_LASTPREDEF ((RESTYPE)9)
|
|
|
|
#define RT_NONE ((RESTYPE)0)
|
|
|
|
|
|
|
|
/* bits and fields within a resource id */
|
2003-11-14 17:49:22 +01:00
|
|
|
#define RESOURCE_AND_CLIENT_COUNT 29 /* 29 bits for XIDs */
|
|
|
|
#if MAXCLIENTS == 64
|
|
|
|
#define RESOURCE_CLIENT_BITS 6
|
|
|
|
#endif
|
|
|
|
#if MAXCLIENTS == 128
|
|
|
|
#define RESOURCE_CLIENT_BITS 7
|
|
|
|
#endif
|
|
|
|
#if MAXCLIENTS == 256
|
|
|
|
#define RESOURCE_CLIENT_BITS 8
|
|
|
|
#endif
|
|
|
|
#if MAXCLIENTS == 512
|
|
|
|
#define RESOURCE_CLIENT_BITS 9
|
|
|
|
#endif
|
|
|
|
/* client field offset */
|
|
|
|
#define CLIENTOFFSET (RESOURCE_AND_CLIENT_COUNT - RESOURCE_CLIENT_BITS)
|
|
|
|
/* resource field */
|
|
|
|
#define RESOURCE_ID_MASK ((1 << CLIENTOFFSET) - 1)
|
|
|
|
/* client field */
|
|
|
|
#define RESOURCE_CLIENT_MASK (((1 << RESOURCE_CLIENT_BITS) - 1) << CLIENTOFFSET)
|
|
|
|
/* extract the client mask from an XID */
|
|
|
|
#define CLIENT_BITS(id) ((id) & RESOURCE_CLIENT_MASK)
|
|
|
|
/* extract the client id from an XID */
|
2003-11-14 16:54:54 +01:00
|
|
|
#define CLIENT_ID(id) ((int)(CLIENT_BITS(id) >> CLIENTOFFSET))
|
2003-11-14 17:49:22 +01:00
|
|
|
#define SERVER_BIT (Mask)0x40000000 /* use illegal bit */
|
2003-11-14 16:54:54 +01:00
|
|
|
|
|
|
|
#ifdef INVALID
|
|
|
|
#undef INVALID /* needed on HP/UX */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Invalid resource id */
|
|
|
|
#define INVALID (0)
|
|
|
|
|
|
|
|
#define BAD_RESOURCE 0xe0000000
|
|
|
|
|
2010-12-17 18:13:26 +01:00
|
|
|
#define rClient(obj) (clients[CLIENT_ID((obj)->resource)])
|
|
|
|
|
2007-03-08 18:13:52 +01:00
|
|
|
/* Resource state callback */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT CallbackListPtr ResourceStateCallback;
|
2007-03-08 18:13:52 +01:00
|
|
|
|
|
|
|
typedef enum {ResourceStateAdding,
|
|
|
|
ResourceStateFreeing} ResourceState;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ResourceState state;
|
|
|
|
XID id;
|
|
|
|
RESTYPE type;
|
|
|
|
pointer value;
|
|
|
|
} ResourceStateInfoRec;
|
|
|
|
|
2003-11-14 16:54:54 +01:00
|
|
|
typedef int (*DeleteType)(
|
|
|
|
pointer /*value*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
XID /*id*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
|
|
|
typedef void (*FindResType)(
|
|
|
|
pointer /*value*/,
|
|
|
|
XID /*id*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*cdata*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2003-11-14 17:49:22 +01:00
|
|
|
typedef void (*FindAllRes)(
|
|
|
|
pointer /*value*/,
|
|
|
|
XID /*id*/,
|
|
|
|
RESTYPE /*type*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*cdata*/);
|
2003-11-14 17:49:22 +01:00
|
|
|
|
|
|
|
typedef Bool (*FindComplexResType)(
|
|
|
|
pointer /*value*/,
|
|
|
|
XID /*id*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*cdata*/);
|
2003-11-14 17:49:22 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RESTYPE CreateNewResourceType(
|
2009-12-03 02:43:01 +01:00
|
|
|
DeleteType /*deleteFunc*/, char * /*name*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2010-04-25 08:56:36 +02:00
|
|
|
extern _X_EXPORT void SetResourceTypeErrorValue(
|
|
|
|
RESTYPE /*type*/, int /*errorValue*/);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RESTYPE CreateNewResourceClass(void);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool InitClientResources(
|
2003-11-25 20:29:01 +01:00
|
|
|
ClientPtr /*client*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT XID FakeClientID(
|
2003-11-25 20:29:01 +01:00
|
|
|
int /*client*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2003-11-14 17:49:22 +01:00
|
|
|
/* Quartz support on Mac OS X uses the CarbonCore
|
|
|
|
framework whose AddResource function conflicts here. */
|
2007-12-08 03:54:58 +01:00
|
|
|
#ifdef __APPLE__
|
2003-11-14 17:49:22 +01:00
|
|
|
#define AddResource Darwin_X_AddResource
|
|
|
|
#endif
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool AddResource(
|
2003-11-14 16:54:54 +01:00
|
|
|
XID /*id*/,
|
|
|
|
RESTYPE /*type*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*value*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeResource(
|
2003-11-14 16:54:54 +01:00
|
|
|
XID /*id*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
RESTYPE /*skipDeleteFuncType*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeResourceByType(
|
2003-11-14 16:54:54 +01:00
|
|
|
XID /*id*/,
|
|
|
|
RESTYPE /*type*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
Bool /*skipFree*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool ChangeResourceValue(
|
2003-11-14 16:54:54 +01:00
|
|
|
XID /*id*/,
|
|
|
|
RESTYPE /*rtype*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*value*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FindClientResourcesByType(
|
2003-11-14 16:54:54 +01:00
|
|
|
ClientPtr /*client*/,
|
|
|
|
RESTYPE /*type*/,
|
|
|
|
FindResType /*func*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*cdata*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FindAllClientResources(
|
2003-11-14 17:49:22 +01:00
|
|
|
ClientPtr /*client*/,
|
|
|
|
FindAllRes /*func*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer /*cdata*/);
|
2003-11-14 17:49:22 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeClientNeverRetainResources(
|
2003-11-25 20:29:01 +01:00
|
|
|
ClientPtr /*client*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeClientResources(
|
2003-11-25 20:29:01 +01:00
|
|
|
ClientPtr /*client*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeAllResources(void);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool LegalNewID(
|
2003-11-14 16:54:54 +01:00
|
|
|
XID /*id*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
ClientPtr /*client*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT pointer LookupClientResourceComplex(
|
2003-11-14 17:49:22 +01:00
|
|
|
ClientPtr client,
|
|
|
|
RESTYPE type,
|
|
|
|
FindComplexResType func,
|
2003-11-25 20:29:01 +01:00
|
|
|
pointer cdata);
|
2003-11-14 17:49:22 +01:00
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
extern _X_EXPORT int dixLookupResourceByType(
|
2007-04-04 18:00:15 +02:00
|
|
|
pointer *result,
|
|
|
|
XID id,
|
|
|
|
RESTYPE rtype,
|
|
|
|
ClientPtr client,
|
|
|
|
Mask access_mode);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
extern _X_EXPORT int dixLookupResourceByClass(
|
|
|
|
pointer *result,
|
|
|
|
XID id,
|
|
|
|
RESTYPE rclass,
|
|
|
|
ClientPtr client,
|
|
|
|
Mask access_mode);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void GetXIDRange(
|
2003-11-14 16:54:54 +01:00
|
|
|
int /*client*/,
|
|
|
|
Bool /*server*/,
|
|
|
|
XID * /*minp*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
XID * /*maxp*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT unsigned int GetXIDList(
|
2003-11-14 16:54:54 +01:00
|
|
|
ClientPtr /*client*/,
|
|
|
|
unsigned int /*count*/,
|
2003-11-25 20:29:01 +01:00
|
|
|
XID * /*pids*/);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT RESTYPE lastResourceType;
|
|
|
|
extern _X_EXPORT RESTYPE TypeMask;
|
2003-11-14 17:49:22 +01:00
|
|
|
|
2007-04-04 18:00:15 +02:00
|
|
|
/*
|
|
|
|
* These are deprecated compatibility functions and will be removed soon!
|
|
|
|
* Please use the noted replacements instead.
|
|
|
|
*/
|
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
/* replaced by dixLookupResourceByType */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT pointer SecurityLookupIDByType(
|
2007-04-04 18:00:15 +02:00
|
|
|
ClientPtr client,
|
|
|
|
XID id,
|
|
|
|
RESTYPE rtype,
|
2010-05-13 17:32:00 +02:00
|
|
|
Mask access_mode) _X_DEPRECATED;
|
2007-04-04 18:00:15 +02:00
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
/* replaced by dixLookupResourceByClass */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT pointer SecurityLookupIDByClass(
|
2007-04-04 18:00:15 +02:00
|
|
|
ClientPtr client,
|
|
|
|
XID id,
|
|
|
|
RESTYPE classes,
|
2010-05-13 17:32:00 +02:00
|
|
|
Mask access_mode) _X_DEPRECATED;
|
2007-04-04 18:00:15 +02:00
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
/* replaced by dixLookupResourceByType */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT pointer LookupIDByType(
|
2007-04-04 18:00:15 +02:00
|
|
|
XID id,
|
2010-05-13 17:32:00 +02:00
|
|
|
RESTYPE rtype) _X_DEPRECATED;
|
2007-04-04 18:00:15 +02:00
|
|
|
|
2008-08-07 00:26:24 +02:00
|
|
|
/* replaced by dixLookupResourceByClass */
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT pointer LookupIDByClass(
|
2007-04-04 18:00:15 +02:00
|
|
|
XID id,
|
2010-05-13 17:32:00 +02:00
|
|
|
RESTYPE classes) _X_DEPRECATED;
|
2007-04-04 18:00:15 +02:00
|
|
|
|
2003-11-14 16:54:54 +01:00
|
|
|
#endif /* RESOURCE_H */
|
|
|
|
|