2008-11-02 08:26:08 -07: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
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Result returned from any unsuccessful lookup
|
|
|
|
*/
|
|
|
|
#define XREGISTRY_UNKNOWN "<unknown>"
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
#include "extnsionst.h"
|
|
|
|
|
2015-09-16 13:10:19 -06:00
|
|
|
#if defined(XSELINUX) || defined(RES)
|
|
|
|
#define X_REGISTRY_RESOURCE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(XSELINUX) || defined(XCSECURITY) || defined(XSERVER_DTRACE)
|
|
|
|
#define X_REGISTRY_REQUEST 1
|
|
|
|
#endif
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* Internal string registry - for auditing, debugging, security, etc. */
|
|
|
|
|
2015-09-16 13:10:19 -06:00
|
|
|
#ifdef X_REGISTRY_RESOURCE
|
|
|
|
/* Functions used by the X-Resource extension */
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void RegisterResourceName(RESTYPE type, const char *name);
|
2015-09-16 13:10:19 -06:00
|
|
|
extern _X_EXPORT const char *LookupResourceName(RESTYPE rtype);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef X_REGISTRY_REQUEST
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void RegisterExtensionNames(ExtensionEntry * ext);
|
2008-11-02 08:26:08 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Lookup functions. The returned string must not be modified or freed.
|
|
|
|
*/
|
2010-07-27 13:02:24 -06: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);
|
2015-09-16 13:10:19 -06:00
|
|
|
#endif
|
2008-11-02 08:26:08 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup and teardown
|
|
|
|
*/
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT void dixResetRegistry(void);
|
2014-05-02 13:27:46 -06:00
|
|
|
extern _X_EXPORT void dixFreeRegistry(void);
|
2015-09-16 13:10:19 -06:00
|
|
|
extern _X_EXPORT void dixCloseRegistry(void);
|
2008-11-02 08:26:08 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* DIX_REGISTRY_H */
|