| 1 | /* $Id: kLdrInternal.h 2826 2006-10-22 15:58:55Z bird $ */
|
|---|
| 2 | /** @file
|
|---|
| 3 | *
|
|---|
| 4 | * kLdr - The Dynamic Loader, internal header.
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright (c) 2006 knut st. osmundsen <[email protected]>
|
|---|
| 7 | *
|
|---|
| 8 | *
|
|---|
| 9 | * This file is part of kLdr.
|
|---|
| 10 | *
|
|---|
| 11 | * kLdr is free software; you can redistribute it and/or modify
|
|---|
| 12 | * it under the terms of the GNU General Public License as published by
|
|---|
| 13 | * the Free Software Foundation; either version 2 of the License, or
|
|---|
| 14 | * (at your option) any later version.
|
|---|
| 15 | *
|
|---|
| 16 | * kLdr is distributed in the hope that it will be useful,
|
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 19 | * GNU General Public License for more details.
|
|---|
| 20 | *
|
|---|
| 21 | * You should have received a copy of the GNU General Public License
|
|---|
| 22 | * along with kLdr; if not, write to the Free Software
|
|---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|---|
| 24 | *
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | #ifndef __kLdrInternal_h__
|
|---|
| 29 | #define __kLdrInternal_h__
|
|---|
| 30 |
|
|---|
| 31 | #ifdef __cplusplus
|
|---|
| 32 | extern "C" {
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | /** Native file provider operations. */
|
|---|
| 36 | extern const KLDRRDROPS g_kLdrRdrFileOps;
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | /**
|
|---|
| 40 | * The state of a dynamic loader module.
|
|---|
| 41 | */
|
|---|
| 42 | typedef enum KLDRSTATE
|
|---|
| 43 | {
|
|---|
| 44 | /** The usual invalid 0 enum. */
|
|---|
| 45 | KLDRSTATE_INVALID = 0,
|
|---|
| 46 | /** kldrOpen succeeded.
|
|---|
| 47 | * Modules in this state will be freed at */
|
|---|
| 48 | KLDRSTATE_OPEN,
|
|---|
| 49 | /** Dependencies has been loaded. */
|
|---|
| 50 | KLDRSTATE_DEPS,
|
|---|
| 51 | /** Fixups has been applied. */
|
|---|
| 52 | KLDRSTATE_FIXED,
|
|---|
| 53 | /** The module has been initialized. */
|
|---|
| 54 | KLDRSTATE_INITED,
|
|---|
| 55 | /** The module is loaded successfully. */
|
|---|
| 56 | KLDRSTATE_LOADED,
|
|---|
| 57 | /** The end of valid states (exclusive) */
|
|---|
| 58 | KLDRSTATE_END,
|
|---|
| 59 | /** The usual 32-bit blowup. */
|
|---|
| 60 | KLDRSTATE_32BIT_HACK = 0x7fffffff
|
|---|
| 61 | } KLDRSTATE;
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | /**
|
|---|
| 65 | * Dynamic loader module.
|
|---|
| 66 | */
|
|---|
| 67 | typedef struct KLDRDY
|
|---|
|
|---|