home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / iffparse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  6.3 KB  |  173 lines

  1. #ifndef _INLINE_IFFPARSE_H
  2. #define _INLINE_IFFPARSE_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef IFFPARSE_BASE_NAME
  9. #define IFFPARSE_BASE_NAME IFFParseBase
  10. #endif
  11.  
  12. #define AllocIFF() \
  13.     LP0(0x1e, struct IFFHandle *, AllocIFF, \
  14.     , IFFPARSE_BASE_NAME)
  15.  
  16. #define AllocLocalItem(type, id, ident, dataSize) \
  17.     LP4(0xba, struct LocalContextItem *, AllocLocalItem, long, type, d0, long, id, d1, long, ident, d2, long, dataSize, d3, \
  18.     , IFFPARSE_BASE_NAME)
  19.  
  20. #define CloseClipboard(clipHandle) \
  21.     LP1NR(0xfc, CloseClipboard, struct ClipboardHandle *, clipHandle, a0, \
  22.     , IFFPARSE_BASE_NAME)
  23.  
  24. #define CloseIFF(iff) \
  25.     LP1NR(0x30, CloseIFF, struct IFFHandle *, iff, a0, \
  26.     , IFFPARSE_BASE_NAME)
  27.  
  28. #define CollectionChunk(iff, type, id) \
  29.     LP3(0x8a, LONG, CollectionChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  30.     , IFFPARSE_BASE_NAME)
  31.  
  32. #define CollectionChunks(iff, propArray, numPairs) \
  33.     LP3(0x90, LONG, CollectionChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  34.     , IFFPARSE_BASE_NAME)
  35.  
  36. #define CurrentChunk(iff) \
  37.     LP1(0xae, struct ContextNode *, CurrentChunk, struct IFFHandle *, iff, a0, \
  38.     , IFFPARSE_BASE_NAME)
  39.  
  40. #define EntryHandler(iff, type, id, position, handler, object) \
  41.     LP6(0x66, LONG, EntryHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \
  42.     , IFFPARSE_BASE_NAME)
  43.  
  44. #define ExitHandler(iff, type, id, position, handler, object) \
  45.     LP6(0x6c, LONG, ExitHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \
  46.     , IFFPARSE_BASE_NAME)
  47.  
  48. #define FindCollection(iff, type, id) \
  49.     LP3(0xa2, struct CollectionItem *, FindCollection, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  50.     , IFFPARSE_BASE_NAME)
  51.  
  52. #define FindLocalItem(iff, type, id, ident) \
  53.     LP4(0xd2, struct LocalContextItem *, FindLocalItem, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, ident, d2, \
  54.     , IFFPARSE_BASE_NAME)
  55.  
  56. #define FindProp(iff, type, id) \
  57.     LP3(0x9c, struct StoredProperty *, FindProp, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  58.     , IFFPARSE_BASE_NAME)
  59.  
  60. #define FindPropContext(iff) \
  61.     LP1(0xa8, struct ContextNode *, FindPropContext, struct IFFHandle *, iff, a0, \
  62.     , IFFPARSE_BASE_NAME)
  63.  
  64. #define FreeIFF(iff) \
  65.     LP1NR(0x36, FreeIFF, struct IFFHandle *, iff, a0, \
  66.     , IFFPARSE_BASE_NAME)
  67.  
  68. #define FreeLocalItem(localItem) \
  69.     LP1NR(0xcc, FreeLocalItem, struct LocalContextItem *, localItem, a0, \
  70.     , IFFPARSE_BASE_NAME)
  71.  
  72. #define GoodID(id) \
  73.     LP1(0x102, LONG, GoodID, long, id, d0, \
  74.     , IFFPARSE_BASE_NAME)
  75.  
  76. #define GoodType(type) \
  77.     LP1(0x108, LONG, GoodType, long, type, d0, \
  78.     , IFFPARSE_BASE_NAME)
  79.  
  80. #define IDtoStr(id, buf) \
  81.     LP2(0x10e, STRPTR, IDtoStr, long, id, d0, STRPTR, buf, a0, \
  82.     , IFFPARSE_BASE_NAME)
  83.  
  84. #define InitIFF(iff, flags, streamHook) \
  85.     LP3NR(0xe4, InitIFF, struct IFFHandle *, iff, a0, long, flags, d0, struct Hook *, streamHook, a1, \
  86.     , IFFPARSE_BASE_NAME)
  87.  
  88. #define InitIFFasClip(iff) \
  89.     LP1NR(0xf0, InitIFFasClip, struct IFFHandle *, iff, a0, \
  90.     , IFFPARSE_BASE_NAME)
  91.  
  92. #define InitIFFasDOS(iff) \
  93.     LP1NR(0xea, InitIFFasDOS, struct IFFHandle *, iff, a0, \
  94.     , IFFPARSE_BASE_NAME)
  95.  
  96. #define LocalItemData(localItem) \
  97.     LP1(0xc0, APTR, LocalItemData, struct LocalContextItem *, localItem, a0, \
  98.     , IFFPARSE_BASE_NAME)
  99.  
  100. #define OpenClipboard(unitNumber) \
  101.     LP1(0xf6, struct ClipboardHandle *, OpenClipboard, long, unitNumber, d0, \
  102.     , IFFPARSE_BASE_NAME)
  103.  
  104. #define OpenIFF(iff, rwMode) \
  105.     LP2(0x24, LONG, OpenIFF, struct IFFHandle *, iff, a0, long, rwMode, d0, \
  106.     , IFFPARSE_BASE_NAME)
  107.  
  108. #define ParentChunk(contextNode) \
  109.     LP1(0xb4, struct ContextNode *, ParentChunk, struct ContextNode *, contextNode, a0, \
  110.     , IFFPARSE_BASE_NAME)
  111.  
  112. #define ParseIFF(iff, control) \
  113.     LP2(0x2a, LONG, ParseIFF, struct IFFHandle *, iff, a0, long, control, d0, \
  114.     , IFFPARSE_BASE_NAME)
  115.  
  116. #define PopChunk(iff) \
  117.     LP1(0x5a, LONG, PopChunk, struct IFFHandle *, iff, a0, \
  118.     , IFFPARSE_BASE_NAME)
  119.  
  120. #define PropChunk(iff, type, id) \
  121.     LP3(0x72, LONG, PropChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  122.     , IFFPARSE_BASE_NAME)
  123.  
  124. #define PropChunks(iff, propArray, numPairs) \
  125.     LP3(0x78, LONG, PropChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  126.     , IFFPARSE_BASE_NAME)
  127.  
  128. #define PushChunk(iff, type, id, size) \
  129.     LP4(0x54, LONG, PushChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, size, d2, \
  130.     , IFFPARSE_BASE_NAME)
  131.  
  132. #define ReadChunkBytes(iff, buf, numBytes) \
  133.     LP3(0x3c, LONG, ReadChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \
  134.     , IFFPARSE_BASE_NAME)
  135.  
  136. #define ReadChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  137.     LP4(0x48, LONG, ReadChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \
  138.     , IFFPARSE_BASE_NAME)
  139.  
  140. #define SetLocalItemPurge(localItem, purgeHook) \
  141.     LP2NR(0xc6, SetLocalItemPurge, struct LocalContextItem *, localItem, a0, struct Hook *, purgeHook, a1, \
  142.     , IFFPARSE_BASE_NAME)
  143.  
  144. #define StopChunk(iff, type, id) \
  145.     LP3(0x7e, LONG, StopChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  146.     , IFFPARSE_BASE_NAME)
  147.  
  148. #define StopChunks(iff, propArray, numPairs) \
  149.     LP3(0x84, LONG, StopChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  150.     , IFFPARSE_BASE_NAME)
  151.  
  152. #define StopOnExit(iff, type, id) \
  153.     LP3(0x96, LONG, StopOnExit, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  154.     , IFFPARSE_BASE_NAME)
  155.  
  156. #define StoreItemInContext(iff, localItem, contextNode) \
  157.     LP3NR(0xde, StoreItemInContext, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, struct ContextNode *, contextNode, a2, \
  158.     , IFFPARSE_BASE_NAME)
  159.  
  160. #define StoreLocalItem(iff, localItem, position) \
  161.     LP3(0xd8, LONG, StoreLocalItem, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, long, position, d0, \
  162.     , IFFPARSE_BASE_NAME)
  163.  
  164. #define WriteChunkBytes(iff, buf, numBytes) \
  165.     LP3(0x42, LONG, WriteChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \
  166.     , IFFPARSE_BASE_NAME)
  167.  
  168. #define WriteChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  169.     LP4(0x4e, LONG, WriteChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \
  170.     , IFFPARSE_BASE_NAME)
  171.  
  172. #endif /* _INLINE_IFFPARSE_H */
  173.