b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/hw/xfree86/parser/Configint.h,v 1.21 2003/08/24 17:37:07 dawes Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright (c) 1997 Metro Link Incorporated
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * copy of this software and associated documentation files (the "Software"),
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * to deal in the Software without restriction, including without limitation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software is furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * all copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Except as contained in this notice, the name of the Metro Link shall not be
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * used in advertising or otherwise to promote the sale, use or other dealings
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * in this Software without prior written authorization from Metro Link.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * copy of this software and associated documentation files (the "Software"),
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * to deal in the Software without restriction, including without limitation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software is furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * all copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Except as contained in this notice, the name of the copyright holder(s)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and author(s) shall not be used in advertising or otherwise to promote
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the sale, use or other dealings in this Software without prior written
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * authorization from the copyright holder(s) and author(s).
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * These definitions are used through out the configuration file parser, but
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * they should not be visible outside of the parser.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define TestFree(a) if (a) { xf86conffree (a); a = NULL; }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define parsePrologue(typeptr,typerec) typeptr ptr; \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncif( (ptr=(typeptr)xf86confcalloc(1,sizeof(typerec))) == NULL ) { return NULL; } \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define parsePrologueVoid(typeptr,typerec) int token; typeptr ptr; \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncif( (ptr=(typeptr)xf86confcalloc(1,sizeof(typerec))) == NULL ) { return; } \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync ptr->field = (type) xf86addListItem ((glp) ptr->field, (glp) p);\
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync xf86parseError (a, b); CLEANUP (ptr); return NULL; \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync } while (0)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * These are defines for error messages to promote consistency.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * error messages are preceded by the line number, section and file name,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * so these messages should be about the specific keyword and syntax in error.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * To help limit namespace polution, end each with _MSG.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * limit messages to 70 characters if possible.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Option keyword requires 1 or 2 quoted strings to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"\"%s\" is not a valid keyword in this section."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"\"%s\" is not a valid section name."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Unexpected EOF. Missing EndSection keyword?"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The %s keyword requires a quoted string to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The %s keyword requires a number to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The %s keyword requires a positive integer to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The ZAxisMapping keyword requires 2 positive numbers or X or Y to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The AutoRepeat keyword requires 2 numbers (delay and rate) to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The XLeds keyword requries one or more numbers to follow it."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The DacSpeed keyword must be followed by a list of up to %d numbers."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The DisplaySize keyword must be followed by the width and height in mm."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The HorizSync keyword must be followed by a list of numbers or ranges."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The VertRefresh keyword must be followed by a list of numbers or ranges."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Viewport keyword must be followed by an X and Y value."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Virtual keyword must be followed by a width and height value."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Weight keyword must be followed by red, green and blue values."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Black keyword must be followed by red, green and blue values."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The White keyword must be followed by red, green and blue values."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Screen keyword must be followed by an optional number, a screen name\n" \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"\tin quotes, and optional position/layout information."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Invalid Screen line."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The InputDevice keyword must be followed by an input device name in quotes."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Inactive keyword must be followed by a Device name in quotes."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined Screen \"%s\" referenced by ServerLayout \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined Monitor \"%s\" referenced by Screen \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined Modes Section \"%s\" referenced by Monitor \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined Device \"%s\" referenced by Screen \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined VideoAdaptor \"%s\" referenced by Screen \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"VideoAdaptor \"%s\" already referenced by Screen \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined Device \"%s\" referenced by ServerLayout \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Undefined InputDevice \"%s\" referenced by ServerLayout \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"This section must have an Identifier line."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"This section must have only one of either %s line."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Device section \"%s\" must have a Driver line."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"InputDevice section \"%s\" must have a Driver line."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"gamma correction value(s) expected\n either one value or three r/g/b values."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"The Group keyword must be followed by either a group name in quotes or\n" \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"\ta numerical group id."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Multiple \"%s\" lines."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Warning messages */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Ignoring obsolete keyword \"%s\"."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync"Keyword \"%s\" is now an Option flag in the ServerFlags section."
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* _Configint_h_ */