1117N/A * Copyright (c) 1997 Metro Link Incorporated 1117N/A * Permission is hereby granted, free of charge, to any person obtaining a 1117N/A * copy of this software and associated documentation files (the "Software"), 1117N/A * to deal in the Software without restriction, including without limitation 1117N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1117N/A * and/or sell copies of the Software, and to permit persons to whom the 1117N/A * Software is furnished to do so, subject to the following conditions: 1117N/A * The above copyright notice and this permission notice shall be included in 1117N/A * all copies or substantial portions of the Software. 1117N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1117N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1117N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1117N/A * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 1117N/A * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 1117N/A * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1117N/A * Except as contained in this notice, the name of the Metro Link shall not be 1117N/A * used in advertising or otherwise to promote the sale, use or other dealings 1117N/A * in this Software without prior written authorization from Metro Link. 1117N/A * Copyright (c) 1997-2003 by The XFree86 Project, Inc. 1117N/A * Permission is hereby granted, free of charge, to any person obtaining a 1117N/A * copy of this software and associated documentation files (the "Software"), 1117N/A * to deal in the Software without restriction, including without limitation 1117N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1117N/A * and/or sell copies of the Software, and to permit persons to whom the 1117N/A * Software is furnished to do so, subject to the following conditions: 1117N/A * The above copyright notice and this permission notice shall be included in 1117N/A * all copies or substantial portions of the Software. 1117N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1117N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1117N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1117N/A * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1117N/A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1117N/A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 1117N/A * OTHER DEALINGS IN THE SOFTWARE. 1117N/A * Except as contained in this notice, the name of the copyright holder(s) 1117N/A * and author(s) shall not be used in advertising or otherwise to promote 1117N/A * the sale, use or other dealings in this Software without prior written 1117N/A * authorization from the copyright holder(s) and author(s). 1117N/A * Parse the Monitor entry line of a Screen section. Return a 1117N/A * pointer to the diagnostic message text in the event of an error. 1117N/A * Look for the optional monitor number token 1117N/A * Look for the monitor name string token 1117N/A /* Monitor entry syntax error */ 1117N/A * * Monitor numbers to be omitted when there are muliple 1117N/A * * Duplicate Monitor numbers 1117N/A * * Duplicate Monitor names 1117N/A /* Missing monitor number */ 1117N/A /* Duplicate monitor number */ 1117N/A /* Duplicate monitor name */ 1117N/A * Append the new Monitor entry element to the list 1117N/A * Get a ptr to the External Representation of this config line 1117N/A * Link Internal & External Representations of the line 1117N/A * Link Internal & External Representations of the EndSubSection line 1117N/A * Get a ptr to the External Representation of this config line 1117N/A * Link Internal & External Representations of the line 1117N/A /* Don't allow duplicates */ 1117N/A * Link Internal & External Representations of the EndSection line 1117N/A * xf86printDisplaySubsectionSubsection() 1117N/A * Write the Display subsection Subsection line to the configuration 1117N/A * xf86printDisplaySubectionMonitor() 1117N/A * Write a Display subsection Monitor entry line to the configuration 1117N/A * xf86printDisplaySubsectionModes() 1117N/A * Write the Modes line of a Display subsection of a Screen section 1117N/A * to the configuration file. 1117N/A * xf86printDisplaySubsectionEndSubsection() 1117N/A * Write the Display subsection EndSubsection line to the 1117N/A//??? xf86printFields(cf, whitespace, "EndSubsection\n", NULL); 1117N/A * xf86printScreenSectionSection() 1117N/A * Write the Screen section Section line to the configuration file. 1117N/A * xf86printScreenSectionIdentifier() 1117N/A * Write the Screen section Identifier line to the configuration 1117N/A * xf86printScreenSectionDevice() 1117N/A * Write the Screen section Device entry line to the configuration 1117N/A * xf86printScreenSectionMonitor() 1117N/A * Write a Screen section Monitor entry line to the configuration 1117N/A * xf86printScreenSectionDefaultDepth() 1117N/A * Write a Screen section DefaultDepth entry to the configuration 1117N/A * xf86printScreenSectionEndSection() 1117N/A * Write the Screen section EndSection line to the configuration 1117N/A * Write a Screen section to the configuration file. 1117N/A * Write each Display subsection to the configuration file 1117N/A * xf86freeScrnMonitorList() 1117N/A * Free the list of Monitor entries of a Screen section, and the 1117N/A * contents of each entry (i.e. Monitor section name string). 1117N/A * Note that xf86conffree() (aka free()) accepts NULL pointers. 1117N/A * Free the list of Screen sections, and the contents of each 1117N/A * Validate each Screen section and its subordinate sections. 1117N/A * Process each Monitor entry in this Screen section 1117N/A * Make sure the specified Device section can be found