135c4bbdfSmrg/* 235c4bbdfSmrg * 305b261ecSmrg * Copyright (c) 1997 Metro Link Incorporated 435c4bbdfSmrg * 505b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a 635c4bbdfSmrg * copy of this software and associated documentation files (the "Software"), 705b261ecSmrg * to deal in the Software without restriction, including without limitation 805b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 905b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the 1005b261ecSmrg * Software is furnished to do so, subject to the following conditions: 1135c4bbdfSmrg * 1205b261ecSmrg * The above copyright notice and this permission notice shall be included in 1305b261ecSmrg * all copies or substantial portions of the Software. 1435c4bbdfSmrg * 1505b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1605b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1705b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1805b261ecSmrg * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 1905b261ecSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 2005b261ecSmrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 2105b261ecSmrg * SOFTWARE. 2235c4bbdfSmrg * 2305b261ecSmrg * Except as contained in this notice, the name of the Metro Link shall not be 2405b261ecSmrg * used in advertising or otherwise to promote the sale, use or other dealings 2505b261ecSmrg * in this Software without prior written authorization from Metro Link. 2635c4bbdfSmrg * 2705b261ecSmrg */ 2805b261ecSmrg/* 2905b261ecSmrg * Copyright (c) 1997-2001 by The XFree86 Project, Inc. 3005b261ecSmrg * 3105b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a 3205b261ecSmrg * copy of this software and associated documentation files (the "Software"), 3305b261ecSmrg * to deal in the Software without restriction, including without limitation 3405b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 3505b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the 3605b261ecSmrg * Software is furnished to do so, subject to the following conditions: 3705b261ecSmrg * 3805b261ecSmrg * The above copyright notice and this permission notice shall be included in 3905b261ecSmrg * all copies or substantial portions of the Software. 4005b261ecSmrg * 4105b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 4205b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 4305b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 4405b261ecSmrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 4505b261ecSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 4605b261ecSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4705b261ecSmrg * OTHER DEALINGS IN THE SOFTWARE. 4805b261ecSmrg * 4905b261ecSmrg * Except as contained in this notice, the name of the copyright holder(s) 5005b261ecSmrg * and author(s) shall not be used in advertising or otherwise to promote 5105b261ecSmrg * the sale, use or other dealings in this Software without prior written 5205b261ecSmrg * authorization from the copyright holder(s) and author(s). 5305b261ecSmrg */ 5405b261ecSmrg 5535c4bbdfSmrg/* 5605b261ecSmrg * This file contains the Option Record that is passed between the Parser, 5705b261ecSmrg * and Module setup procs. 5805b261ecSmrg */ 5905b261ecSmrg#ifdef HAVE_XORG_CONFIG_H 6005b261ecSmrg#include <xorg-config.h> 6105b261ecSmrg#endif 6205b261ecSmrg 6305b261ecSmrg#ifndef _xf86Optrec_h_ 6405b261ecSmrg#define _xf86Optrec_h_ 6505b261ecSmrg#include <stdio.h> 666747b715Smrg#include <string.h> 6735c4bbdfSmrg#include "xf86Optionstr.h" 686747b715Smrg 696747b715Smrg#include <X11/Xfuncproto.h> 7005b261ecSmrg 7135c4bbdfSmrgextern _X_EXPORT XF86OptionPtr xf86addNewOption(XF86OptionPtr head, char *name, 7235c4bbdfSmrg char *val); 736747b715Smrgextern _X_EXPORT XF86OptionPtr xf86optionListDup(XF86OptionPtr opt); 746747b715Smrgextern _X_EXPORT void xf86optionListFree(XF86OptionPtr opt); 756747b715Smrgextern _X_EXPORT char *xf86optionName(XF86OptionPtr opt); 766747b715Smrgextern _X_EXPORT char *xf86optionValue(XF86OptionPtr opt); 776747b715Smrgextern _X_EXPORT XF86OptionPtr xf86newOption(char *name, char *value); 786747b715Smrgextern _X_EXPORT XF86OptionPtr xf86nextOption(XF86OptionPtr list); 7935c4bbdfSmrgextern _X_EXPORT XF86OptionPtr xf86findOption(XF86OptionPtr list, 8035c4bbdfSmrg const char *name); 8135c4bbdfSmrgextern _X_EXPORT const char *xf86findOptionValue(XF86OptionPtr list, 8235c4bbdfSmrg const char *name); 8335c4bbdfSmrgextern _X_EXPORT XF86OptionPtr xf86optionListCreate(const char **options, 8435c4bbdfSmrg int count, int used); 8535c4bbdfSmrgextern _X_EXPORT XF86OptionPtr xf86optionListMerge(XF86OptionPtr head, 8635c4bbdfSmrg XF86OptionPtr tail); 8735c4bbdfSmrgextern _X_EXPORT int xf86nameCompare(const char *s1, const char *s2); 886747b715Smrgextern _X_EXPORT char *xf86uLongToString(unsigned long i); 896747b715Smrgextern _X_EXPORT XF86OptionPtr xf86parseOption(XF86OptionPtr head); 9035c4bbdfSmrgextern _X_EXPORT void xf86printOptionList(FILE * fp, XF86OptionPtr list, 9135c4bbdfSmrg int tabs); 9205b261ecSmrg 9335c4bbdfSmrg#endif /* _xf86Optrec_h_ */ 94