home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / programming / misc / m2_part1.lha / modula / dice / dice.LHA / include / pd / dynaload.h next >
Encoding:
C/C++ Source or Header  |  1991-03-16  |  1.2 KB  |  49 lines

  1.  
  2. /*
  3.  *  DYNALOAD.H
  4.  */
  5.  
  6. #define DERR_NOSDMEM    1
  7. #define DERR_SYMNOTFND    2
  8. #define DERR_OBJNOTFND    3
  9. #define DERR_OBJINVALID 4
  10. #define DERR_EXENOTFND    5
  11. #define DERR_EXENOSYM    6
  12. #define DERR_NOSEGLIST    7
  13. #define DERR_EXEINVALID 8
  14. #define DERR_NOMEM    9
  15. #define DERR_FUNCNOFND    10
  16. #define DERR_BADPARAM    11
  17. #define DERR_BADRELOC    12
  18. #define DERR_UNSUPRELOC 13
  19. #define DERR_NODSPTR    14
  20.  
  21. #define DC_CacheRef    (TAG_USER+0)
  22. #define DC_Executable    (TAG_USER+1)
  23. #define DC_ExecDir    (TAG_USER+2)
  24. #define DC_ExecName    (TAG_USER+3)
  25. #define DC_SearchPath    (TAG_USER+4)
  26. #define DC_StickyCache    (TAG_USER+5)
  27. #define DC_BaseOffset    (TAG_USER+6)
  28. #define DC_BasePtr    (TAG_USER+7)
  29. #define DC_SegList    (TAG_USER+8)
  30. #define DC_ErrorCode    (TAG_USER+9)
  31. #define DC_ObjName    (TAG_USER+10)
  32. #define DC_ErrorVecLen    (TAG_USER+11)
  33. #define DC_ErrorVec    (TAG_USER+12)
  34.  
  35. #ifndef DYNALOAD
  36.  
  37. typedef long DynaDesc;
  38.  
  39. DynaDesc CreateDynaCache(struct TagItem *);
  40. DynaDesc CreateDynaCacheTags(Tag tag1, ...);
  41. long DeleteDynaCache(DynaDesc);
  42. void *DynaLoad(DynaDesc, char *, struct TagItem *);
  43. void *DynaLoadObj(DynaDesc, char *, char *);
  44. void *DynaLoadTags(DynaDesc, char *, Tag tag1, ...);
  45. void FreeDynaErrorVec(char **, long);
  46. void DynaUnLoad(DynaDesc, void *);
  47.  
  48. #endif
  49.