2 * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * Except as contained in this notice, the name of Conectiva Linux shall
23 * not be used in advertising or otherwise to promote the sale, use or other
24 * dealings in this Software without prior written authorization from
27 * Author: Paulo César Pereira de Andrade <pcpa@conectiva.com.br>
33 #ifndef _xf86cfg_xf86config_h
34 #define _xf86cfg_xf86config_h
36 #define xf86addInput(head, ptr) \
37 (XF86ConfInputPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
38 #define xf86addInputref(head, ptr) \
39 (XF86ConfInputrefPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
40 #define xf86addDevice(head, ptr) \
41 (XF86ConfDevicePtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
42 #define xf86addDisplayMode(head, ptr) \
43 (XF86ModePtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
44 #define xf86addMonitor(head, ptr) \
45 (XF86ConfMonitorPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
46 #define xf86addScreen(head, ptr) \
47 (XF86ConfScreenPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
48 #define xf86addLayout(head, ptr) \
49 (XF86ConfLayoutPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
50 #define xf86addModeLine(head, ptr) \
51 (XF86ConfModeLinePtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
52 #define xf86addModes(head, ptr) \
53 (XF86ConfModesPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
54 #define xf86addModesLink(head, ptr) \
55 (XF86ConfModesLinkPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
56 #define xf86addModule(head, ptr) \
57 (XF86LoadPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
58 #define xf86addScreenAdaptor(head, ptr) \
59 (XF86ConfAdaptorLinkPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
60 #define xf86addScreenDisplay(head, ptr) \
61 (XF86ConfDisplayPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
62 #define xf86addVideoAdaptor(head, ptr) \
63 (XF86ConfVideoAdaptorPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
64 #define xf86addVideoPort(head, ptr) \
65 (XF86ConfVideoPortPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
66 #define xf86addAdjacency(head, ptr) \
67 (XF86ConfAdjacencyPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
68 #define xf86addVendor(head, ptr) \
69 (XF86ConfVendorPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
70 #define xf86addVendorSub(head, ptr) \
71 (XF86ConfVendSubPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
72 #define xf86addBuffers(head, ptr) \
73 (XF86ConfBuffersPtr)xf86addListItem((GenericListPtr)(head), (GenericListPtr)(ptr))
76 int xf86removeOption(XF86OptionPtr
*, char*);
77 int xf86removeInput(XF86ConfigPtr
, XF86ConfInputPtr
);
78 int xf86removeInputRef(XF86ConfLayoutPtr
, XF86ConfInputPtr
);
79 int xf86removeDevice(XF86ConfigPtr
, XF86ConfDevicePtr
);
80 int xf86removeDisplayMode(XF86ConfDisplayPtr
, XF86ModePtr
);
81 int xf86removeMonitor(XF86ConfigPtr
, XF86ConfMonitorPtr
);
82 int xf86removeScreen(XF86ConfigPtr
, XF86ConfScreenPtr
);
83 int xf86removeAdjacency(XF86ConfLayoutPtr
, XF86ConfAdjacencyPtr
);
84 int xf86removeInactive(XF86ConfLayoutPtr
, XF86ConfInactivePtr
);
85 int xf86removeLayout(XF86ConfigPtr
, XF86ConfLayoutPtr
);
86 int xf86removeModule(XF86ConfigPtr
, XF86LoadPtr
);
87 int xf86removeModes(XF86ConfigPtr
, XF86ConfModesPtr
);
88 int xf86removeModesModeLine(XF86ConfModesPtr
, XF86ConfModeLinePtr
);
89 int xf86removeMonitorModeLine(XF86ConfMonitorPtr
, XF86ConfModeLinePtr
);
90 int xf86removeMonitorModesLink(XF86ConfMonitorPtr
, XF86ConfModesLinkPtr
);
91 int xf86removeScreenAdaptorLink(XF86ConfScreenPtr
, XF86ConfAdaptorLinkPtr
);
92 int xf86removeScreenDisplay(XF86ConfScreenPtr
, XF86ConfDisplayPtr
);
93 int xf86removeVideoAdaptor(XF86ConfigPtr
, XF86ConfVideoAdaptorPtr
);
94 int xf86removeVideoPort(XF86ConfVideoAdaptorPtr
, XF86ConfVideoPortPtr
);
95 int xf86removeVendor(XF86ConfigPtr
, XF86ConfVendorPtr
);
96 int xf86removeVendorSub(XF86ConfVendorPtr
, XF86ConfVendSubPtr
);
97 int xf86removeBuffers(XF86ConfDRIPtr
, XF86ConfBuffersPtr
);
99 int xf86renameInput(XF86ConfigPtr
, XF86ConfInputPtr
, char*);
100 int xf86renameDevice(XF86ConfigPtr
, XF86ConfDevicePtr
, char*);
101 int xf86renameMonitor(XF86ConfigPtr
, XF86ConfMonitorPtr
, char*);
102 int xf86renameLayout(XF86ConfigPtr
, XF86ConfLayoutPtr
, char*);
103 int xf86renameScreen(XF86ConfigPtr
, XF86ConfScreenPtr
, char*);
105 extern void xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr
);
106 extern void xf86freeDisplayList(XF86ConfDisplayPtr
);
107 extern void xf86freeModeList(XF86ModePtr
);
108 extern void xf86freeVendorSubList(XF86ConfVendSubPtr
);
110 #endif /* _xf86cfg_xf86config_h */