diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-11-02 17:54:24 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-11-02 17:54:24 +0100 |
commit | 1d1d1fc2199672c722dd75cefe8389268bfbbad3 (patch) | |
tree | 4f28577cc0f7a05a8f31169a6a367abe36518ae3 /nx-X11/programs/Xserver/randr/registry.h | |
parent | 6eb8d3ec60549e54ea2b4df3e4a53a84045ea1cd (diff) | |
parent | 7d884049b20e50f7a35098874dad2a42e36bf6b6 (diff) | |
download | nx-libs-1d1d1fc2199672c722dd75cefe8389268bfbbad3.tar.gz nx-libs-1d1d1fc2199672c722dd75cefe8389268bfbbad3.tar.bz2 nx-libs-1d1d1fc2199672c722dd75cefe8389268bfbbad3.zip |
Merge branch 'pr/unused_files' into 3.6.x
Attributes GH PR #267: https://github.com/ArcticaProject/nx-libs/pull/267
Diffstat (limited to 'nx-X11/programs/Xserver/randr/registry.h')
-rw-r--r-- | nx-X11/programs/Xserver/randr/registry.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/nx-X11/programs/Xserver/randr/registry.h b/nx-X11/programs/Xserver/randr/registry.h deleted file mode 100644 index 28b1510f2..000000000 --- a/nx-X11/programs/Xserver/randr/registry.h +++ /dev/null @@ -1,64 +0,0 @@ -/*********************************************************** - -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>" - -#ifdef XREGISTRY - -#include "resource.h" -#include "extnsionst.h" - -/* Internal string registry - for auditing, debugging, security, etc. */ - -/* - * Registration functions. The name string is not copied, so it must - * not be a stack variable. - */ -void RegisterResourceName(RESTYPE type, char *name); -void RegisterExtensionNames(ExtensionEntry * ext); - -/* - * Lookup functions. The returned string must not be modified or freed. - */ -const char *LookupMajorName(int major); -const char *LookupRequestName(int major, int minor); -const char *LookupEventName(int event); -const char *LookupErrorName(int error); -const char *LookupResourceName(RESTYPE rtype); - -/* - * Setup and teardown - */ -void dixResetRegistry(void); - -#else /* XREGISTRY */ - -/* Define calls away when the registry is not being built. */ - -#define RegisterResourceName(a, b) { ; } -#define RegisterExtensionNames(a) { ; } - -#define LookupMajorName(a) XREGISTRY_UNKNOWN -#define LookupRequestName(a, b) XREGISTRY_UNKNOWN -#define LookupEventName(a) XREGISTRY_UNKNOWN -#define LookupErrorName(a) XREGISTRY_UNKNOWN -#define LookupResourceName(a) XREGISTRY_UNKNOWN - -#define dixResetRegistry() { ; } - -#endif /* XREGISTRY */ -#endif /* DIX_REGISTRY_H */ |