Changeset 2842 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Oct 30, 2006, 1:49:15 AM (19 years ago)
Author:
bird
Message:

toplevel load api code is done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2840 r2842  
    545545/** Returns ALL kinds of symbols. The default is to only return public/exported symbols. */
    546546#define KLDRMOD_ENUM_SYMBOL_FLAGS_ALL       0x00000001
     547/** Do a recursive initialization calls instead of defering them to the outermost call. */
     548#define KLDRDYLD_LOAD_FLAGS_RECURSIVE_INIT  0x00000002
    547549/** @} */
    548550
     
    734736
    735737/** Invalid parameter to a kLdr API. */
    736 #define KLDR_ERR_INVALID_PARAMETER      (KLDR_ERR_BASE + 32)
     738#define KLDR_ERR_INVALID_PARAMETER                          (KLDR_ERR_BASE + 32)
    737739/** Invalid handle parameter to a kLdr API. */
    738 #define KLDR_ERR_INVALID_HANDLE         (KLDR_ERR_BASE + 33)
     740#define KLDR_ERR_INVALID_HANDLE                             (KLDR_ERR_BASE + 33)
     741/** The module wasn't loaded dynamically. */
     742#define KLDR_ERR_NOT_LOADED_DYNAMICALLY                     (KLDR_ERR_BASE + 34)
    739743/** The module wasn't found. */
    740 #define KLDR_ERR_MODULE_NOT_FOUND                   (KLDR_ERR_BASE + 34)
     744#define KLDR_ERR_MODULE_NOT_FOUND                           (KLDR_ERR_BASE + 35)
    741745/** A prerequisit module wasn't found. */
    742 #define KLDR_ERR_PREREQUISITE_MODULE_NOT_FOUND      (KLDR_ERR_BASE + 35)
     746#define KLDR_ERR_PREREQUISITE_MODULE_NOT_FOUND              (KLDR_ERR_BASE + 36)
    743747/** The module is being terminated and can therefore not be loaded. */
    744 #define KLDR_ERR_MODULE_TERMINATING                 (KLDR_ERR_BASE + 36)
     748#define KLDR_ERR_MODULE_TERMINATING                         (KLDR_ERR_BASE + 37)
    745749/** A prerequisit module is being terminated and can therefore not be loaded. */
    746 #define KLDR_ERR_PREREQUISITE_MODULE_TERMINATING    (KLDR_ERR_BASE + 37)
    747 /** An allocation failed. */
    748 #define KLDR_ERR_NO_MEMORY                          (KLDR_ERR_BASE + 38)
     750#define KLDR_ERR_PREREQUISITE_MODULE_TERMINATING            (KLDR_ERR_BASE + 38)
     751/** The module initialization failed. */
     752#define KLDR_ERR_MODULE_INIT_FAILED                         (KLDR_ERR_BASE + 39)
     753/** The initialization of a prerequisite module failed. */
     754#define KLDR_ERR_PREREQUISITE_MODULE_INIT_FAILED            (KLDR_ERR_BASE + 40)
     755/** The module has already failed initialization and can't be attempted reloaded until
     756 * after we've finished garbage collection. */
     757#define KLDR_ERR_MODULE_INIT_FAILED_ALREADY                 (KLDR_ERR_BASE + 41)
     758/** A prerequisite module has already failed initialization and can't be attempted
     759 * reloaded until after we've finished garbage collection. */
     760#define KLDR_ERR_PREREQUISITE_MODULE_INIT_FAILED_ALREADY    (KLDR_ERR_BASE + 42)
     761/** Prerequisite recursed too deeply. */
     762#define KLDR_ERR_PREREQUISITE_RECURSED_TOO_DEEPLY           (KLDR_ERR_BASE + 43)
    749763
    750764
    751765/** Encountered a bad fixup. */
    752 #define KLDR_ERR_BAD_FIXUP              (KLDR_ERR_BASE + 48)
     766#define KLDR_ERR_BAD_FIXUP                                  (KLDR_ERR_BASE + 48)
     767
     768/** A memory allocation failed. */
     769#define KLDR_ERR_NO_MEMORY                                  (KLDR_ERR_BASE + 64)
    753770
    754771/** @} */
Note: See TracChangeset for help on using the changeset viewer.