VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/registry.h@ 78293

Last change on this file since 78293 was 54163, checked in by vboxsync, 10 years ago

Additions/x11/vboxvideo: support X.Org Server 1.17 (still untested).

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/***********************************************************
2
3THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
7AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
10******************************************************************/
11
12#ifndef DIX_REGISTRY_H
13#define DIX_REGISTRY_H
14
15/*
16 * Result returned from any unsuccessful lookup
17 */
18#define XREGISTRY_UNKNOWN "<unknown>"
19
20#include "resource.h"
21#include "extnsionst.h"
22
23#if defined(XSELINUX) || defined(RES)
24#define X_REGISTRY_RESOURCE 1
25#endif
26
27#if defined(XSELINUX) || defined(XCSECURITY) || defined(XSERVER_DTRACE)
28#define X_REGISTRY_REQUEST 1
29#endif
30
31/* Internal string registry - for auditing, debugging, security, etc. */
32
33#ifdef X_REGISTRY_RESOURCE
34/* Functions used by the X-Resource extension */
35extern _X_EXPORT void RegisterResourceName(RESTYPE type, const char *name);
36extern _X_EXPORT const char *LookupResourceName(RESTYPE rtype);
37#endif
38
39#ifdef X_REGISTRY_REQUEST
40extern _X_EXPORT void RegisterExtensionNames(ExtensionEntry * ext);
41
42/*
43 * Lookup functions. The returned string must not be modified or freed.
44 */
45extern _X_EXPORT const char *LookupMajorName(int major);
46extern _X_EXPORT const char *LookupRequestName(int major, int minor);
47extern _X_EXPORT const char *LookupEventName(int event);
48extern _X_EXPORT const char *LookupErrorName(int error);
49#endif
50
51/*
52 * Setup and teardown
53 */
54extern _X_EXPORT void dixResetRegistry(void);
55extern _X_EXPORT void dixFreeRegistry(void);
56extern _X_EXPORT void dixCloseRegistry(void);
57
58#endif /* DIX_REGISTRY_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette