home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / defines / iffparse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-08  |  9.6 KB  |  272 lines

  1. #ifndef DEFINES_IFFPARSE_H
  2. #define DEFINES_IFFPARSE_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #   include <exec/types.h>
  6. #endif
  7. #ifndef AROS_LIBCALL_H
  8. #   include <aros/libcall.h>
  9. #endif
  10.  
  11. /*
  12.     Defines
  13. */
  14. #define AllocIFF() \
  15.     AROS_LC0(struct IFFHandle *, AllocIFF, \
  16.     struct Library *, IFFParseBase, 5, IFFParse)
  17.  
  18. #define AllocLocalItem(type, id, ident, dataSize) \
  19.     AROS_LC4(struct LocalContextItem *, AllocLocalItem, \
  20.     AROS_LCA(LONG, type, D0), \
  21.     AROS_LCA(LONG, id, D1), \
  22.     AROS_LCA(LONG, ident, D2), \
  23.     AROS_LCA(ULONG, dataSize, D3), \
  24.     struct Library *, IFFParseBase, 31, IFFParse)
  25.  
  26. #define CloseClipboard(clipHandle) \
  27.     AROS_LC1(void, CloseClipboard, \
  28.     AROS_LCA(struct ClipboardHandle *, clipHandle, A0), \
  29.     struct Library *, IFFParseBase, 42, IFFParse)
  30.  
  31. #define CloseIFF(iff) \
  32.     AROS_LC1(void, CloseIFF, \
  33.     AROS_LCA(struct IFFHandle *, iff, A0), \
  34.     struct Library *, IFFParseBase, 8, IFFParse)
  35.  
  36. #define CollectionChunk(iff, type, id) \
  37.     AROS_LC3(LONG, CollectionChunk, \
  38.     AROS_LCA(struct IFFHandle *, iff, A0), \
  39.     AROS_LCA(LONG              , type, D0), \
  40.     AROS_LCA(LONG              , id, D1), \
  41.     struct Library *, IFFParseBase, 23, IFFParse)
  42.  
  43. #define CollectionChunks(iff, propArray, numPairs) \
  44.     AROS_LC3(LONG, CollectionChunks, \
  45.     AROS_LCA(struct IFFHandle *, iff, A0), \
  46.     AROS_LCA(LONG             *, propArray, A1), \
  47.     AROS_LCA(LONG              , numPairs, D0), \
  48.     struct Library *, IFFParseBase, 24, IFFParse)
  49.  
  50. #define CurrentChunk(iff) \
  51.     AROS_LC1(struct ContextNode *, CurrentChunk, \
  52.     AROS_LCA(struct IFFHandle *, iff, A0), \
  53.     struct Library *, IFFParseBase, 29, IFFParse)
  54.  
  55. #define EntryHandler(iff, type, id, position, handler, object) \
  56.     AROS_LC6(LONG, EntryHandler, \
  57.     AROS_LCA(struct IFFHandle *, iff, A0), \
  58.     AROS_LCA(LONG              , type, D0), \
  59.     AROS_LCA(LONG              , id, D1), \
  60.     AROS_LCA(LONG              , position, D2), \
  61.     AROS_LCA(struct Hook      *, handler, A1), \
  62.     AROS_LCA(APTR              , object, A2), \
  63.     struct Library *, IFFParseBase, 17, IFFParse)
  64.  
  65. #define ExitHandler(iff, type, id, position, handler, object) \
  66.     AROS_LC6(LONG, ExitHandler, \
  67.     AROS_LCA(struct IFFHandle *, iff, A0), \
  68.     AROS_LCA(LONG              , type, D0), \
  69.     AROS_LCA(LONG              , id, D1), \
  70.     AROS_LCA(LONG              , position, D2), \
  71.     AROS_LCA(struct Hook      *, handler, A1), \
  72.     AROS_LCA(APTR              , object, A2), \
  73.     struct Library *, IFFParseBase, 18, IFFParse)
  74.  
  75. #define FindCollection(iff, type, id) \
  76.     AROS_LC3(struct CollectionItem *, FindCollection, \
  77.     AROS_LCA(struct IFFHandle *, iff, A0), \
  78.     AROS_LCA(LONG              , type, D0), \
  79.     AROS_LCA(LONG              , id, D1), \
  80.     struct Library *, IFFParseBase, 27, IFFParse)
  81.  
  82. #define FindLocalItem(iff, type, id, ident) \
  83.     AROS_LC4(struct LocalContextItem *, FindLocalItem, \
  84.     AROS_LCA(struct IFFHandle *, iff, A0), \
  85.     AROS_LCA(LONG              , type, D0), \
  86.     AROS_LCA(LONG              , id, D1), \
  87.     AROS_LCA(LONG              , ident, D2), \
  88.     struct Library *, IFFParseBase, 35, IFFParse)
  89.  
  90. #define FindProp(iff, type, id) \
  91.     AROS_LC3(struct StoredProperty *, FindProp, \
  92.     AROS_LCA(struct IFFHandle *, iff, A0), \
  93.     AROS_LCA(LONG              , type, D0), \
  94.     AROS_LCA(LONG              , id, D1), \
  95.     struct Library *, IFFParseBase, 26, IFFParse)
  96.  
  97. #define FindPropContext(iff) \
  98.     AROS_LC1(struct ContextNode *, FindPropContext, \
  99.     AROS_LCA(struct IFFHandle *, iff, A0), \
  100.     struct Library *, IFFParseBase, 28, IFFParse)
  101.  
  102. #define FreeIFF(iff) \
  103.     AROS_LC1(void, FreeIFF, \
  104.     AROS_LCA(struct IFFHandle *, iff, A0), \
  105.     struct Library *, IFFParseBase, 9, IFFParse)
  106.  
  107. #define FreeLocalItem(localItem) \
  108.     AROS_LC1(void, FreeLocalItem, \
  109.     AROS_LCA(struct LocalContextItem *, localItem, A0), \
  110.     struct Library *, IFFParseBase, 34, IFFParse)
  111.  
  112. #define GoodID(id) \
  113.     AROS_LC1(LONG, GoodID, \
  114.     AROS_LCA(LONG, id, D0), \
  115.     struct Library *, IFFParseBase, 43, IFFParse)
  116.  
  117. #define GoodType(type) \
  118.     AROS_LC1(LONG, GoodType, \
  119.     AROS_LCA(LONG, type, D0), \
  120.     struct Library *, IFFParseBase, 44, IFFParse)
  121.  
  122. #define IDtoStr(id, buf) \
  123.     AROS_LC2(STRPTR, IDtoStr, \
  124.     AROS_LCA(LONG  , id, D0), \
  125.     AROS_LCA(STRPTR, buf, A0), \
  126.     struct Library *, IFFParseBase, 45, IFFParse)
  127.  
  128. #define InitIFF(iff, flags, streamHook) \
  129.     AROS_LC3(void, InitIFF, \
  130.     AROS_LCA(struct IFFHandle *, iff, A0), \
  131.     AROS_LCA(LONG              , flags, D0), \
  132.     AROS_LCA(struct Hook      *, streamHook, A1), \
  133.     struct Library *, IFFParseBase, 38, IFFParse)
  134.  
  135. #define InitIFFasClip(iff) \
  136.     AROS_LC1(void, InitIFFasClip, \
  137.     AROS_LCA(struct IFFHandle *, iff, A0), \
  138.     struct Library *, IFFParseBase, 40, IFFParse)
  139.  
  140. #define InitIFFasDOS(iff) \
  141.     AROS_LC1(void, InitIFFasDOS, \
  142.     AROS_LCA(struct IFFHandle *, iff, A0), \
  143.     struct Library *, IFFParseBase, 39, IFFParse)
  144.  
  145. #define LocalItemData(localItem) \
  146.     AROS_LC1(APTR, LocalItemData, \
  147.     AROS_LCA(struct LocalContextItem *, localItem, A0), \
  148.     struct Library *, IFFParseBase, 32, IFFParse)
  149.  
  150. #define OpenClipboard(unitNumber) \
  151.     AROS_LC1(struct ClipboardHandle *, OpenClipboard, \
  152.     AROS_LCA(LONG, unitNumber, D0), \
  153.     struct Library *, IFFParseBase, 41, IFFParse)
  154.  
  155. #define OpenIFF(iff, rwMode) \
  156.     AROS_LC2(LONG, OpenIFF, \
  157.     AROS_LCA(struct IFFHandle *, iff, A0), \
  158.     AROS_LCA(LONG              , rwMode, D0), \
  159.     struct Library *, IFFParseBase, 6, IFFParse)
  160.  
  161. #define ParentChunk(contextNode) \
  162.     AROS_LC1(struct ContextNode *, ParentChunk, \
  163.     AROS_LCA(struct ContextNode *, contextNode, A0), \
  164.     struct Library *, IFFParseBase, 30, IFFParse)
  165.  
  166. #define ParseIFF(iff, mode) \
  167.     AROS_LC2(LONG, ParseIFF, \
  168.     AROS_LCA(struct IFFHandle *, iff, A0), \
  169.     AROS_LCA(LONG              , mode, D0), \
  170.     struct Library *, IFFParseBase, 7, IFFParse)
  171.  
  172. #define PopChunk(iff) \
  173.     AROS_LC1(LONG, PopChunk, \
  174.     AROS_LCA(struct IFFHandle *, iff, A0), \
  175.     struct Library *, IFFParseBase, 15, IFFParse)
  176.  
  177. #define PropChunk(iff, type, id) \
  178.     AROS_LC3(LONG, PropChunk, \
  179.     AROS_LCA(struct IFFHandle *, iff, A0), \
  180.     AROS_LCA(LONG              , type, D0), \
  181.     AROS_LCA(LONG              , id, D1), \
  182.     struct Library *, IFFParseBase, 19, IFFParse)
  183.  
  184. #define PropChunks(iff, propArray, numPairs) \
  185.     AROS_LC3(LONG, PropChunks, \
  186.     AROS_LCA(struct IFFHandle *, iff, A0), \
  187.     AROS_LCA(LONG             *, propArray, A1), \
  188.     AROS_LCA(LONG              , numPairs, D0), \
  189.     struct Library *, IFFParseBase, 20, IFFParse)
  190.  
  191. #define PushChunk(iff, type, id, size) \
  192.     AROS_LC4(LONG, PushChunk, \
  193.     AROS_LCA(struct IFFHandle *, iff, A0), \
  194.     AROS_LCA(LONG              , type, D0), \
  195.     AROS_LCA(LONG              , id, D1), \
  196.     AROS_LCA(LONG              , size, D2), \
  197.     struct Library *, IFFParseBase, 14, IFFParse)
  198.  
  199. #define ReadChunkBytes(iff, buf, numBytes) \
  200.     AROS_LC3(LONG, ReadChunkBytes, \
  201.     AROS_LCA(struct IFFHandle *, iff, A0), \
  202.     AROS_LCA(APTR              , buf, A1), \
  203.     AROS_LCA(LONG              , numBytes, D0), \
  204.     struct Library *, IFFParseBase, 10, IFFParse)
  205.  
  206. #define ReadChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  207.     AROS_LC4(LONG, ReadChunkRecords, \
  208.     AROS_LCA(struct IFFHandle *, iff, A0), \
  209.     AROS_LCA(APTR              , buf, A1), \
  210.     AROS_LCA(LONG              , bytesPerRecord, D0), \
  211.     AROS_LCA(LONG              , numRecords, D1), \
  212.     struct Library *, IFFParseBase, 12, IFFParse)
  213.  
  214. #define SetLocalItemPurge(localItem, purgeHook) \
  215.     AROS_LC2(void, SetLocalItemPurge, \
  216.     AROS_LCA(struct LocalContextItem *, localItem, A0), \
  217.     AROS_LCA(struct Hook             *, purgeHook, A1), \
  218.     struct Library *, IFFParseBase, 33, IFFParse)
  219.  
  220. #define StopChunk(iff, type, id) \
  221.     AROS_LC3(LONG, StopChunk, \
  222.     AROS_LCA(struct IFFHandle *, iff, A0), \
  223.     AROS_LCA(LONG              , type, D0), \
  224.     AROS_LCA(LONG              , id, D1), \
  225.     struct Library *, IFFParseBase, 21, IFFParse)
  226.  
  227. #define StopChunks(iff, propArray, numPairs) \
  228.     AROS_LC3(LONG, StopChunks, \
  229.     AROS_LCA(struct IFFHandle *, iff, A0), \
  230.     AROS_LCA(LONG             *, propArray, A1), \
  231.     AROS_LCA(LONG              , numPairs, D0), \
  232.     struct Library *, IFFParseBase, 22, IFFParse)
  233.  
  234. #define StopOnExit(iff, type, id) \
  235.     AROS_LC3(LONG, StopOnExit, \
  236.     AROS_LCA(struct IFFHandle *, iff, A0), \
  237.     AROS_LCA(LONG              , type, D0), \
  238.     AROS_LCA(LONG              , id, D1), \
  239.     struct Library *, IFFParseBase, 25, IFFParse)
  240.  
  241. #define StoreItemInContext(iff, localItem, contextNode) \
  242.     AROS_LC3(void, StoreItemInContext, \
  243.     AROS_LCA(struct IFFHandle        *, iff, A0), \
  244.     AROS_LCA(struct LocalContextItem *, localItem, A1), \
  245.     AROS_LCA(struct ContextNode      *, contextNode, A2), \
  246.     struct Library *, IFFParseBase, 37, IFFParse)
  247.  
  248. #define StoreLocalItem(iff, localItem, position) \
  249.     AROS_LC3(LONG, StoreLocalItem, \
  250.     AROS_LCA(struct IFFHandle        *, iff, A0), \
  251.     AROS_LCA(struct LocalContextItem *, localItem, A1), \
  252.     AROS_LCA(LONG                     , position, D0), \
  253.     struct Library *, IFFParseBase, 36, IFFParse)
  254.  
  255. #define WriteChunkBytes(iff, buf, numBytes) \
  256.     AROS_LC3(LONG, WriteChunkBytes, \
  257.     AROS_LCA(struct IFFHandle *, iff, A0), \
  258.     AROS_LCA(APTR              , buf, A1), \
  259.     AROS_LCA(LONG              , numBytes, D0), \
  260.     struct Library *, IFFParseBase, 11, IFFParse)
  261.  
  262. #define WriteChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  263.     AROS_LC4(LONG, WriteChunkRecords, \
  264.     AROS_LCA(struct IFFHandle *, iff, A0), \
  265.     AROS_LCA(APTR              , buf, A1), \
  266.     AROS_LCA(LONG              , bytesPerRecord, D0), \
  267.     AROS_LCA(LONG              , numRecords, D1), \
  268.     struct Library *, IFFParseBase, 13, IFFParse)
  269.  
  270.  
  271. #endif /* DEFINES_IFFPARSE_H */
  272.