1 | /*
|
---|
2 | *
|
---|
3 | * Copyright (c) 1997 Metro Link Incorporated
|
---|
4 | *
|
---|
5 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
6 | * copy of this software and associated documentation files (the "Software"),
|
---|
7 | * to deal in the Software without restriction, including without limitation
|
---|
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
9 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
10 | * Software is furnished to do so, subject to the following conditions:
|
---|
11 | *
|
---|
12 | * The above copyright notice and this permission notice shall be included in
|
---|
13 | * all copies or substantial portions of the Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
18 | * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
19 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
---|
20 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
---|
21 | * SOFTWARE.
|
---|
22 | *
|
---|
23 | * Except as contained in this notice, the name of the Metro Link shall not be
|
---|
24 | * used in advertising or otherwise to promote the sale, use or other dealings
|
---|
25 | * in this Software without prior written authorization from Metro Link.
|
---|
26 | *
|
---|
27 | */
|
---|
28 | /*
|
---|
29 | * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
|
---|
30 | *
|
---|
31 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
32 | * copy of this software and associated documentation files (the "Software"),
|
---|
33 | * to deal in the Software without restriction, including without limitation
|
---|
34 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
35 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
36 | * Software is furnished to do so, subject to the following conditions:
|
---|
37 | *
|
---|
38 | * The above copyright notice and this permission notice shall be included in
|
---|
39 | * all copies or substantial portions of the Software.
|
---|
40 | *
|
---|
41 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
42 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
43 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
44 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
45 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
46 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
47 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
48 | *
|
---|
49 | * Except as contained in this notice, the name of the copyright holder(s)
|
---|
50 | * and author(s) shall not be used in advertising or otherwise to promote
|
---|
51 | * the sale, use or other dealings in this Software without prior written
|
---|
52 | * authorization from the copyright holder(s) and author(s).
|
---|
53 | */
|
---|
54 |
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * This file contains the Option Record that is passed between the Parser,
|
---|
58 | * and Module setup procs.
|
---|
59 | */
|
---|
60 | #ifdef HAVE_XORG_CONFIG_H
|
---|
61 | #include <xorg-config.h>
|
---|
62 | #endif
|
---|
63 |
|
---|
64 | #ifndef _xf86Optrec_h_
|
---|
65 | #define _xf86Optrec_h_
|
---|
66 | #include <stdio.h>
|
---|
67 | #include <string.h>
|
---|
68 | #include "xf86Optionstr.h"
|
---|
69 |
|
---|
70 | #include <X11/Xfuncproto.h>
|
---|
71 |
|
---|
72 | extern _X_EXPORT XF86OptionPtr xf86addNewOption(XF86OptionPtr head, char *name, char *val);
|
---|
73 | extern _X_EXPORT XF86OptionPtr xf86optionListDup(XF86OptionPtr opt);
|
---|
74 | extern _X_EXPORT void xf86optionListFree(XF86OptionPtr opt);
|
---|
75 | extern _X_EXPORT char *xf86optionName(XF86OptionPtr opt);
|
---|
76 | extern _X_EXPORT char *xf86optionValue(XF86OptionPtr opt);
|
---|
77 | extern _X_EXPORT XF86OptionPtr xf86newOption(char *name, char *value);
|
---|
78 | extern _X_EXPORT XF86OptionPtr xf86nextOption(XF86OptionPtr list);
|
---|
79 | extern _X_EXPORT XF86OptionPtr xf86findOption(XF86OptionPtr list, const char *name);
|
---|
80 | extern _X_EXPORT const char *xf86findOptionValue(XF86OptionPtr list, const char *name);
|
---|
81 | extern _X_EXPORT XF86OptionPtr xf86optionListCreate(const char **options, int count, int used);
|
---|
82 | extern _X_EXPORT XF86OptionPtr xf86optionListMerge(XF86OptionPtr head, XF86OptionPtr tail);
|
---|
83 | extern _X_EXPORT int xf86nameCompare (const char *s1, const char *s2);
|
---|
84 | extern _X_EXPORT char *xf86uLongToString(unsigned long i);
|
---|
85 | extern _X_EXPORT XF86OptionPtr xf86parseOption(XF86OptionPtr head);
|
---|
86 | extern _X_EXPORT void xf86printOptionList(FILE *fp, XF86OptionPtr list, int tabs);
|
---|
87 |
|
---|
88 |
|
---|
89 | #endif /* _xf86Optrec_h_ */
|
---|