/*
*
* Copyright (c) 1997 Metro Link Incorporated
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Except as contained in this notice, the name of the Metro Link shall not be
* used in advertising or otherwise to promote the sale, use or other dealings
* in this Software without prior written authorization from Metro Link.
*
*/
/*
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* Except as contained in this notice, the name of the copyright holder(s)
* and author(s) shall not be used in advertising or otherwise to promote
* the sale, use or other dealings in this Software without prior written
* authorization from the copyright holder(s) and author(s).
*/
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86Parser.h"
#include "xf86tokens.h"
#include "Configint.h"
{
{PROTOCOL, "protocol"},
{EMULATE3, "emulate3buttons"},
{EM3TIMEOUT, "emulate3timeout"},
{ENDSUBSECTION, "endsubsection"},
{ENDSECTION, "endsection"},
{PDEVICE, "device"},
{PDEVICE, "port"},
{BAUDRATE, "baudrate"},
{SAMPLERATE, "samplerate"},
{CLEARDTR, "cleardtr"},
{CLEARRTS, "clearrts"},
{CHORDMIDDLE, "chordmiddle"},
{PRESOLUTION, "resolution"},
{DEVICE_NAME, "devicename"},
{ALWAYSCORE, "alwayscore"},
{PBUTTONS, "buttons"},
{ZAXISMAPPING, "zaxismapping"},
{-1, ""},
};
{
{XAXIS, "x"},
{YAXIS, "y"},
{-1, ""},
};
xf86parsePointerSection (void)
{
int l;
int token;
{
switch (token)
{
case COMMENT:
break;
case PROTOCOL:
xf86configStrdup("Protocol"),
break;
case PDEVICE:
xf86configStrdup("Device"),
break;
case EMULATE3:
xf86configStrdup("Emulate3Buttons"),
NULL);
break;
case EM3TIMEOUT:
xf86configStrdup("Emulate3Timeout"),
s);
break;
case CHORDMIDDLE:
xf86configStrdup("ChordMiddle"),
NULL);
break;
case PBUTTONS:
xf86configStrdup("Buttons"), s);
break;
case BAUDRATE:
xf86configStrdup("BaudRate"), s);
break;
case SAMPLERATE:
xf86configStrdup("SampleRate"), s);
break;
case PRESOLUTION:
xf86configStrdup("Resolution"), s);
break;
case CLEARDTR:
break;
case CLEARRTS:
break;
case ZAXISMAPPING:
switch (xf86getToken(ZMapTab)) {
case NUMBER:
}
s = xf86confmalloc(l);
break;
case XAXIS:
s = xf86configStrdup("x");
break;
case YAXIS:
s = xf86configStrdup("y");
break;
default:
break;
}
xf86configStrdup("ZAxisMapping"),
s);
break;
case ALWAYSCORE:
break;
case EOF_TOKEN:
break;
default:
break;
}
}
#ifdef DEBUG
printf ("Pointer section parsed\n");
#endif
return ptr;
}