; $Id$
;; @file
; kLdr - The Dynamic Loader, OS/2 Linker Definition File.
;

;
; Copyright (c) 2006-2007 knut st. osmundsen <bird-kStuff-spam@anduin.net>
;
; This file is part of kStuff.
;
; kStuff is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public
; License as published by the Free Software Foundation; either
; version 2.1 of the License, or (at your option) any later version.
;
; In addition to the permissions in the GNU Lesser General Public
; License, you are granted unlimited permission to link the compiled
; version of this file into combinations with other programs, and to
; distribute those combinations without any restriction coming from
; the use of this file.
;
; kStuff is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
; Lesser General Public License for more details.
;
; You should have received a copy of the GNU Lesser General Public
; License along with kStuff; if not, write to the Free Software
; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
; 02110-1301, USA
;


LIBRARY kLdr INITINSTANCE TERMINSTANCE
DATA MULTIPLE
EXPORTS
    ; The file reader API
    _kRdrAddProvider
    _kRdrOpen
    _kRdrClose
    _kRdrRead
    _kRdrAllMap
    _kRdrAllUnmap
    _kRdrSize
    _kRdrTell
    _kRdrName
    _kRdrPageSize
    _kRdrMap
    _kRdrRefresh
    _kRdrProtect
    _kRdrUnmap
    _kRdrDone

    ; The module interpreter API
    _kLdrModOpen
    _kLdrModOpenFromRdr
    _kLdrModOpenNative
    _kLdrModOpenNativeByHandle
    _kLdrModClose
    _kLdrModQuerySymbol
    _kLdrModEnumSymbols
    _kLdrModGetImport
    _kLdrModNumberOfImports
    _kLdrModCanExecuteOn
    _kLdrModGetStackInfo
    _kLdrModQueryMainEntrypoint
    _kLdrModEnumDbgInfo
    _kLdrModHasDbgInfo
    _kLdrModMap
    _kLdrModUnmap
    _kLdrModAllocTLS
    _kLdrModFreeTLS
    _kLdrModReload
    _kLdrModFixupMapping
    _kLdrModCallInit
    _kLdrModCallTerm
    _kLdrModCallThread
    _kLdrModSize
    _kLdrModGetBits
    _kLdrModRelocateBits

    ; Process Bootstrapping
    _kLdrDyldLoadExe

    ; Dynamic loading
    _kLdrDyldLoad
    _kLdrDyldUnload
    _kLdrDyldFindByName
    _kLdrDyldFindByAddress
    _kLdrDyldGetName
    _kLdrDyldGetFilename
    _kLdrDyldQuerySymbol


    ; OS/2 API wrappers:
;    kLdrLoadModule
;    kLdrFreeModule
;    kLdrQueryModuleHandle
;    kLdrQueryModuleName
;    kLdrQueryProcAddr
;    kLdrQueryProcType
;    kLdrQueryModFromEIP
;    kLdrReplaceModule
;    kLdrGetResource
;    kLdrFreeResource
;    kLdrQueryResourceSize

    ; dlfcn API wrappers:
;    _kLdrDlOpen
;    _kLdrDlClose
;    _kLdrDlError
;    _kLdrDlSym
;    _kLdrDlFunc

    ; Error APIs:
    _kErrStr


