VirtualBox

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

Last change on this file since 78293 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 4.3 KB
Line 
1/*
2 * Copyright 1995-1998 by Metro Link, Inc.
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of Metro Link, Inc. not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. Metro Link, Inc. makes no
11 * representations about the suitability of this software for any purpose.
12 * It is provided "as is" without express or implied warranty.
13 *
14 * METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL METRO LINK, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 */
22/*
23 * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
24 *
25 * Permission is hereby granted, free of charge, to any person obtaining a
26 * copy of this software and associated documentation files (the "Software"),
27 * to deal in the Software without restriction, including without limitation
28 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
29 * and/or sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following conditions:
31 *
32 * The above copyright notice and this permission notice shall be included in
33 * all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
38 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
39 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
40 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 *
43 * Except as contained in this notice, the name of the copyright holder(s)
44 * and author(s) shall not be used in advertising or otherwise to promote
45 * the sale, use or other dealings in this Software without prior written
46 * authorization from the copyright holder(s) and author(s).
47 */
48
49#ifdef HAVE_XORG_CONFIG_H
50#include <xorg-config.h>
51#endif
52
53#ifndef _LOADERPROCS_H
54#define _LOADERPROCS_H
55
56#undef IN_LOADER
57#define IN_LOADER
58#include "xf86Module.h"
59#include <X11/fonts/fontmod.h>
60
61typedef struct module_desc {
62 struct module_desc *child;
63 struct module_desc *sib;
64 struct module_desc *parent;
65 struct module_desc *demand_next;
66 char *name;
67 char *filename;
68 char *identifier;
69 XID client_id;
70 int in_use;
71 int handle;
72 ModuleSetupProc SetupProc;
73 ModuleTearDownProc TearDownProc;
74 void *TearDownData; /* returned from SetupProc */
75 const char *path;
76 const XF86ModuleVersionInfo *VersionInfo;
77} ModuleDesc, *ModuleDescPtr;
78
79/* External API for the loader */
80
81void LoaderInit(void);
82
83ModuleDescPtr LoadDriver(const char *, const char *, int, pointer, int *,
84 int *);
85ModuleDescPtr LoadModule(const char *, const char *, const char **,
86 const char **, pointer, const XF86ModReqInfo *,
87 int *, int *);
88ModuleDescPtr LoadSubModule(ModuleDescPtr, const char *,
89 const char **, const char **, pointer,
90 const XF86ModReqInfo *, int *, int *);
91ModuleDescPtr LoadSubModuleLocal(ModuleDescPtr, const char *,
92 const char **, const char **,
93 pointer, const XF86ModReqInfo *,
94 int *, int *);
95ModuleDescPtr DuplicateModule(ModuleDescPtr mod, ModuleDescPtr parent);
96void LoadFont(FontModule *);
97void UnloadModule(ModuleDescPtr);
98void UnloadSubModule(ModuleDescPtr);
99void UnloadDriver(ModuleDescPtr);
100void LoaderSetPath(const char *path);
101void LoaderSortExtensions(void);
102
103int LoaderUnload(int);
104unsigned long LoaderGetModuleVersion(ModuleDescPtr mod);
105
106void LoaderResetOptions(void);
107void LoaderSetOptions(unsigned long);
108
109/* Options for LoaderSetOptions */
110#define LDR_OPT_ABI_MISMATCH_NONFATAL 0x0001
111
112#endif /* _LOADERPROCS_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