| 1 | /* $Id: weakld.h 2692 2006-04-10 22:50:06Z bird $ */ | 
|---|
| 2 | /** @file | 
|---|
| 3 | * | 
|---|
| 4 | * Weak Pre-Linker. | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright (c) 2003 InnoTek Systemberatung GmbH | 
|---|
| 7 | * Author: knut st. osmundsen <bird-srcspam@anduin.net> | 
|---|
| 8 | * | 
|---|
| 9 | * | 
|---|
| 10 | * This program is free software; you can redistribute it and/or modify | 
|---|
| 11 | * it under the terms of the GNU General Public License as published by | 
|---|
| 12 | * the Free Software Foundation; either version 2 of the License, or | 
|---|
| 13 | * (at your option) any later version. | 
|---|
| 14 | * | 
|---|
| 15 | * This program is distributed in the hope that it will be useful, | 
|---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 18 | * GNU General Public License for more details. | 
|---|
| 19 | * | 
|---|
| 20 | * You should have received a copy of the GNU General Public License | 
|---|
| 21 | * along with This program; if not, write to the Free Software | 
|---|
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
|---|
| 23 | * | 
|---|
| 24 | */ | 
|---|
| 25 |  | 
|---|
| 26 | #ifndef __weak_h__ | 
|---|
| 27 | #define __weak_h__ | 
|---|
| 28 |  | 
|---|
| 29 | /******************************************************************************* | 
|---|
| 30 | *   Structures and Typedefs                                                    * | 
|---|
| 31 | *******************************************************************************/ | 
|---|
| 32 | struct wld; | 
|---|
| 33 | /** Weak LD Instance Pointer. */ | 
|---|
| 34 | typedef struct wld * PWLD; | 
|---|
| 35 |  | 
|---|
| 36 | /** wld_create() flags. */ | 
|---|
| 37 | enum wld_create_flags | 
|---|
| 38 | { | 
|---|
| 39 | /** Verbose */ | 
|---|
| 40 | WLDC_VERBOSE        = 1, | 
|---|
| 41 | /** Skip extended dictionary of libraries. */ | 
|---|
| 42 | WLDC_NO_EXTENDED_DICTIONARY_SEARCH = 2, | 
|---|
| 43 | /** Case in-sensitive symbol resolution. */ | 
|---|
| 44 | WLDC_CASE_INSENSITIVE = 4, | 
|---|
| 45 | /** The linker is link386. */ | 
|---|
| 46 | WLDC_LINKER_LINK386 = 0x1000, | 
|---|
| 47 | /** The linker is wlink. */ | 
|---|
| 48 | WLDC_LINKER_WLINK = 0x2000 | 
|---|
| 49 | }; | 
|---|
| 50 |  | 
|---|
| 51 |  | 
|---|
| 52 | /******************************************************************************* | 
|---|
| 53 | *   Functions                                                                  * | 
|---|
| 54 | *******************************************************************************/ | 
|---|
| 55 | /** @group Weak LD - Public methods. | 
|---|
| 56 | * @{ */ | 
|---|
| 57 | PWLD    WLDCreate(unsigned fFlags); | 
|---|
| 58 | int     WLDAddObject(PWLD pWld, FILE *phFile, const char *pszName); | 
|---|
| 59 | int     WLDAddDefFile(PWLD pWld, FILE *phFile, const char *pszName); | 
|---|
| 60 | int     WLDAddLibrary(PWLD pWld, FILE *phFile, const char *pszName); | 
|---|
| 61 | int     WLDPass1(PWLD pWld); | 
|---|
| 62 | int     WLDGenerateWeakAliases(PWLD pwld, char *pszObjName, char *pszDefName); | 
|---|
| 63 | int     WLDDestroy(PWLD pWld); | 
|---|
| 64 | /** @} */ | 
|---|
| 65 |  | 
|---|
| 66 | #endif | 
|---|