2007-10-11 20:17:17 +02:00
|
|
|
/***********************************************************
|
|
|
|
|
|
|
|
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
|
|
|
|
AUTHOR 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.
|
|
|
|
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef DIX_REGISTRY_H
|
|
|
|
#define DIX_REGISTRY_H
|
|
|
|
|
2007-12-14 20:59:29 +01:00
|
|
|
/*
|
|
|
|
* Result returned from any unsuccessful lookup
|
|
|
|
*/
|
|
|
|
#define XREGISTRY_UNKNOWN "<unknown>"
|
|
|
|
|
2007-10-11 20:17:17 +02:00
|
|
|
#include "resource.h"
|
2007-11-26 21:26:49 +01:00
|
|
|
#include "extnsionst.h"
|
2007-10-11 20:17:17 +02:00
|
|
|
|
2014-09-11 00:21:32 +02:00
|
|
|
#if defined(XSELINUX) || defined(RES)
|
|
|
|
#define X_REGISTRY_RESOURCE 1
|
|
|
|
#endif
|
|
|
|
|
2014-09-20 13:04:43 +02:00
|
|
|
#if defined(XSELINUX) || defined(XCSECURITY) || defined(XSERVER_DTRACE)
|
2014-09-11 00:21:32 +02:00
|
|
|
#define X_REGISTRY_REQUEST 1
|
|
|
|
#endif
|
|
|
|
|
2007-10-11 20:17:17 +02:00
|
|
|
/* Internal string registry - for auditing, debugging, security, etc. */
|
|
|
|
|
2014-09-11 00:21:32 +02:00
|
|
|
#ifdef X_REGISTRY_RESOURCE
|
|
|
|
/* Functions used by the X-Resource extension */
|
2011-12-13 01:49:33 +01:00
|
|
|
extern _X_EXPORT void RegisterResourceName(RESTYPE type, const char *name);
|
2014-09-11 00:21:32 +02:00
|
|
|
extern _X_EXPORT const char *LookupResourceName(RESTYPE rtype);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef X_REGISTRY_REQUEST
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void RegisterExtensionNames(ExtensionEntry * ext);
|
2007-10-11 20:17:17 +02:00
|
|
|
|
|
|
|
/*
|
2007-11-26 21:26:49 +01:00
|
|
|
* Lookup functions. The returned string must not be modified or freed.
|
2007-10-11 20:17:17 +02: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 const char *LookupMajorName(int major);
|
|
|
|
extern _X_EXPORT const char *LookupRequestName(int major, int minor);
|
|
|
|
extern _X_EXPORT const char *LookupEventName(int event);
|
|
|
|
extern _X_EXPORT const char *LookupErrorName(int error);
|
2014-09-11 00:21:32 +02:00
|
|
|
#endif
|
2007-10-11 20:17:17 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup and teardown
|
|
|
|
*/
|
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 dixResetRegistry(void);
|
2012-02-27 09:59:45 +01:00
|
|
|
extern _X_EXPORT void dixFreeRegistry(void);
|
2014-09-11 00:04:00 +02:00
|
|
|
extern _X_EXPORT void dixCloseRegistry(void);
|
2007-10-11 20:17:17 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif /* DIX_REGISTRY_H */
|