| 1 | /* |
| 2 | $Header: d:/cvsroot/tads/TADS2/MCL.H,v 1.2 1999/05/17 02:52:12 MJRoberts Exp $ |
| 3 | */ |
| 4 | |
| 5 | /* |
| 6 | * Copyright (c) 1991, 2002 Michael J. Roberts. All Rights Reserved. |
| 7 | * |
| 8 | * Please see the accompanying license file, LICENSE.TXT, for information |
| 9 | * on using and copying this software. |
| 10 | */ |
| 11 | /* |
| 12 | Name |
| 13 | mcl.h - memory cache loader |
| 14 | Function |
| 15 | Object loader definitions |
| 16 | Notes |
| 17 | The memory cache object loader is a subsystem used by the memory |
| 18 | cache manager to load objects from a file. The cache manager |
| 19 | obtains a loader context during initialization, then refers to |
| 20 | objects through loader handles. |
| 21 | |
| 22 | All loading is actually accomplished through client callbacks. |
| 23 | There is no general loader implementation. The "load handle" is |
| 24 | defined here suitably for an fseek() location; it is assumed that |
| 25 | clients will store the fseek() location of an object when setting |
| 26 | up the load map, then use information stored at this fseek address |
| 27 | to complete the load on demand. |
| 28 | Modified |
| 29 | 08/03/91 MJRoberts - creation |
| 30 | */ |
| 31 | |
| 32 | #ifndef MCL_INCLUDED |
| 33 | #define MCL_INCLUDED |
| 34 | |
| 35 | #ifndef STD_INCLUDED |
| 36 | # include "std.h" |
| 37 | #endif |
| 38 | #ifndef ERR_INCLUDED |
| 39 | # include "err.h" |
| 40 | #endif |
| 41 | |
| 42 | /* loader context */ |
| 43 | typedef struct mclcxdef mclcxdef; |
| 44 | struct mclcxdef |
| 45 | { |
| 46 | errcxdef *mclcxerr; /* error handling context */ |
| 47 | }; |
| 48 | |
| 49 | /* loader handle */ |
| 50 | typedef ulong mclhd; /* essentially a seek address */ |
| 51 | |
| 52 | #endif /* MCL_INCLUDED */ |