105b261ecSmrg/* 205b261ecSmrg * Copyright 1995-1998 by Metro Link, Inc. 305b261ecSmrg * 405b261ecSmrg * Permission to use, copy, modify, distribute, and sell this software and its 505b261ecSmrg * documentation for any purpose is hereby granted without fee, provided that 605b261ecSmrg * the above copyright notice appear in all copies and that both that 705b261ecSmrg * copyright notice and this permission notice appear in supporting 805b261ecSmrg * documentation, and that the name of Metro Link, Inc. not be used in 905b261ecSmrg * advertising or publicity pertaining to distribution of the software without 1005b261ecSmrg * specific, written prior permission. Metro Link, Inc. makes no 1105b261ecSmrg * representations about the suitability of this software for any purpose. 1205b261ecSmrg * It is provided "as is" without express or implied warranty. 1305b261ecSmrg * 1405b261ecSmrg * METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1505b261ecSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1605b261ecSmrg * EVENT SHALL METRO LINK, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1705b261ecSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1805b261ecSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1905b261ecSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2005b261ecSmrg * PERFORMANCE OF THIS SOFTWARE. 2105b261ecSmrg */ 2205b261ecSmrg/* 2305b261ecSmrg * Copyright (c) 1997-2002 by The XFree86 Project, Inc. 2405b261ecSmrg * 2505b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a 2605b261ecSmrg * copy of this software and associated documentation files (the "Software"), 2705b261ecSmrg * to deal in the Software without restriction, including without limitation 2805b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 2905b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the 3005b261ecSmrg * Software is furnished to do so, subject to the following conditions: 3105b261ecSmrg * 3205b261ecSmrg * The above copyright notice and this permission notice shall be included in 3305b261ecSmrg * all copies or substantial portions of the Software. 3405b261ecSmrg * 3505b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 3605b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 3705b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 3805b261ecSmrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 3905b261ecSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 4005b261ecSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4105b261ecSmrg * OTHER DEALINGS IN THE SOFTWARE. 4205b261ecSmrg * 4305b261ecSmrg * Except as contained in this notice, the name of the copyright holder(s) 4405b261ecSmrg * and author(s) shall not be used in advertising or otherwise to promote 4505b261ecSmrg * the sale, use or other dealings in this Software without prior written 4605b261ecSmrg * authorization from the copyright holder(s) and author(s). 4705b261ecSmrg */ 4805b261ecSmrg 4905b261ecSmrg#ifdef HAVE_XORG_CONFIG_H 5005b261ecSmrg#include <xorg-config.h> 5105b261ecSmrg#endif 5205b261ecSmrg 5305b261ecSmrg#ifndef _LOADERPROCS_H 5405b261ecSmrg#define _LOADERPROCS_H 5505b261ecSmrg 5605b261ecSmrg#include "xf86Module.h" 5705b261ecSmrg 5805b261ecSmrgtypedef struct module_desc { 5905b261ecSmrg struct module_desc *child; 6005b261ecSmrg struct module_desc *sib; 6105b261ecSmrg struct module_desc *parent; 629ace9065Smrg void *handle; 6305b261ecSmrg ModuleSetupProc SetupProc; 6405b261ecSmrg ModuleTearDownProc TearDownProc; 6535c4bbdfSmrg void *TearDownData; /* returned from SetupProc */ 6605b261ecSmrg const XF86ModuleVersionInfo *VersionInfo; 6705b261ecSmrg} ModuleDesc, *ModuleDescPtr; 6805b261ecSmrg 6905b261ecSmrg/* External API for the loader */ 7005b261ecSmrg 7105b261ecSmrgvoid LoaderInit(void); 7205b261ecSmrg 731b5d61b8SmrgModuleDescPtr LoadModule(const char *, void *, const XF86ModReqInfo *, int *); 7405b261ecSmrgModuleDescPtr DuplicateModule(ModuleDescPtr mod, ModuleDescPtr parent); 7505b261ecSmrgvoid UnloadDriver(ModuleDescPtr); 7605b261ecSmrgvoid LoaderSetPath(const char *path); 7705b261ecSmrg 789ace9065Smrgvoid LoaderUnload(const char *, void *); 7905b261ecSmrgunsigned long LoaderGetModuleVersion(ModuleDescPtr mod); 8005b261ecSmrg 8105b261ecSmrgvoid LoaderResetOptions(void); 8205b261ecSmrgvoid LoaderSetOptions(unsigned long); 8305b261ecSmrg 841b5d61b8Smrgconst char **LoaderListDir(const char *, const char **); 851b5d61b8Smrg 8605b261ecSmrg/* Options for LoaderSetOptions */ 8705b261ecSmrg#define LDR_OPT_ABI_MISMATCH_NONFATAL 0x0001 8805b261ecSmrg 8935c4bbdfSmrg#endif /* _LOADERPROCS_H */ 90