home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / clib / iffparse_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  6.3 KB  |  150 lines

  1. #ifndef  CLIB_IFFPARSE_PROTOS_H
  2. #define  CLIB_IFFPARSE_PROTOS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8.  
  9. #ifndef  EXEC_TYPES_H
  10. #include <exec/types.h>
  11. #endif
  12. #ifndef  LIBRARIES_IFFPARSE_H
  13. #include <libraries/iffparse.h>
  14. #endif
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20.  
  21. struct IFFHandle *AllocIFF( void );
  22. LONG OpenIFF( struct IFFHandle *iff, long rwMode );
  23. LONG ParseIFF( struct IFFHandle *iff, long control );
  24. void CloseIFF( struct IFFHandle *iff );
  25. void FreeIFF( struct IFFHandle *iff );
  26.  
  27. LONG ReadChunkBytes( struct IFFHandle *iff, APTR buf, long numBytes );
  28. LONG WriteChunkBytes( struct IFFHandle *iff, APTR buf, long numBytes );
  29. LONG ReadChunkRecords( struct IFFHandle *iff, APTR buf, long bytesPerRecord,
  30.     long numRecords );
  31. LONG WriteChunkRecords( struct IFFHandle *iff, APTR buf, long bytesPerRecord,
  32.     long numRecords );
  33.  
  34. LONG PushChunk( struct IFFHandle *iff, long type, long id, long size );
  35. LONG PopChunk( struct IFFHandle *iff );
  36.  
  37. LONG PropChunk( struct IFFHandle *iff, long type, long id );
  38. LONG PropChunks( struct IFFHandle *iff, LONG *propArray, long numPairs );
  39. LONG StopChunk( struct IFFHandle *iff, long type, long id );
  40. LONG StopChunks( struct IFFHandle *iff, LONG *propArray, long numPairs );
  41. LONG StopOnExit( struct IFFHandle *iff, long type, long id );
  42.  
  43. struct StoredProperty *FindProp( struct IFFHandle *iff, long type, long id );
  44. struct ContextNode *CurrentChunk( struct IFFHandle *iff );
  45.  
  46. void InitIFFasDOS( struct IFFHandle *iff );
  47.  
  48. STRPTR IDtoStr( long id, STRPTR buf );
  49.  
  50.  
  51. /*****************************************************************************/
  52.  
  53.  
  54. #ifdef __IGNORE_NOT_SUPPORTED__
  55.  
  56.  
  57. LONG EntryHandler( struct IFFHandle *iff, long type, long id, long position,struct Hook *handler, APTR object );
  58. LONG ExitHandler( struct IFFHandle *iff, long type, long id, long position,struct Hook *handler, APTR object );
  59. struct CollectionItem *FindCollection( struct IFFHandle *iff, long type,long id );
  60. struct ContextNode *FindPropContext( struct IFFHandle *iff );
  61. LONG CollectionChunk( struct IFFHandle *iff, long type, long id );
  62. LONG CollectionChunks( struct IFFHandle *iff, LONG *propArray,long numPairs );
  63. struct ContextNode *ParentChunk( struct ContextNode *contextNode );
  64. struct LocalContextItem *AllocLocalItem( long type, long id, long ident,long dataSize );
  65. APTR LocalItemData( struct LocalContextItem *localItem );
  66. void SetLocalItemPurge( struct LocalContextItem *localItem,struct Hook *purgeHook );
  67. void FreeLocalItem( struct LocalContextItem *localItem );
  68. struct LocalContextItem *FindLocalItem( struct IFFHandle *iff, long type,long id, long ident );
  69. LONG StoreLocalItem( struct IFFHandle *iff, struct LocalContextItem *localItem,long position );
  70. void StoreItemInContext( struct IFFHandle *iff,struct LocalContextItem *localItem,struct ContextNode *contextNode );
  71. void InitIFF( struct IFFHandle *iff, long flags, struct Hook *streamHook );
  72. void InitIFFasClip( struct IFFHandle *iff );
  73. struct ClipboardHandle *OpenClipboard( long unitNumber );
  74. void CloseClipboard( struct ClipboardHandle *clipHandle );
  75. LONG GoodID( long id );
  76. LONG GoodType( long type );
  77.  
  78.  
  79. #else
  80.  
  81.  
  82. #define EntryHandler EntryHandler__NOT_SUPPORTED__
  83. LONG EntryHandler( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, long type, long id, long position,struct Hook *handler, APTR object );
  84.  
  85. #define ExitHandler ExitHandler__NOT_SUPPORTED__
  86. LONG ExitHandler( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, long type, long id, long position,struct Hook *handler, APTR object );
  87.  
  88. #define FindCollection FindCollection__NOT_SUPPORTED__
  89. struct CollectionItem *FindCollection( struct __NOT_SUPPORTED__*,struct IFFHandle *iff, long type,long id );
  90.  
  91. #define FindPropContext FindPropContext__NOT_SUPPORTED__
  92. struct ContextNode *FindPropContext( struct __NOT_SUPPORTED__*,struct IFFHandle *iff );
  93.  
  94. #define CollectionChunk CollectionChunk__NOT_SUPPORTED__
  95. LONG CollectionChunk( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, long type, long id );
  96.  
  97. #define CollectionChunks CollectionChunks__NOT_SUPPORTED__
  98. LONG CollectionChunks( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, LONG *propArray,long numPairs );
  99.  
  100. #define ParentChunk ParentChunk__NOT_SUPPORTED__
  101. struct ContextNode *ParentChunk( struct __NOT_SUPPORTED__*,struct ContextNode *contextNode );
  102.  
  103. #define AllocLocalItem AllocLocalItem__NOT_SUPPORTED__
  104. struct LocalContextItem *AllocLocalItem( struct __NOT_SUPPORTED__*,long type, long id, long ident,long dataSize );
  105.  
  106. #define LocalItemData LocalItemData__NOT_SUPPORTED__
  107. APTR LocalItemData( struct __NOT_SUPPORTED__*, struct LocalContextItem *localItem );
  108.  
  109. #define SetLocalItemPurge SetLocalItemPurge__NOT_SUPPORTED__
  110. void SetLocalItemPurge( struct __NOT_SUPPORTED__*, struct LocalContextItem *localItem,struct Hook *purgeHook );
  111.  
  112. #define FreeLocalItem FreeLocalItem__NOT_SUPPORTED__
  113. void FreeLocalItem( struct __NOT_SUPPORTED__*, struct LocalContextItem *localItem );
  114.  
  115. #define FindLocalItem FindLocalItem__NOT_SUPPORTED__
  116. struct LocalContextItem *FindLocalItem( struct __NOT_SUPPORTED__*,struct IFFHandle *iff, long type,long id, long ident );
  117.  
  118. #define StoreLocalItem StoreLocalItem__NOT_SUPPORTED__
  119. LONG StoreLocalItem( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, struct LocalContextItem *localItem,long position );
  120.  
  121. #define StoreItemInContext StoreItemInContext__NOT_SUPPORTED__
  122. void StoreItemInContext( struct __NOT_SUPPORTED__*, struct IFFHandle *iff,struct LocalContextItem *localItem,struct ContextNode *contextNode );
  123.  
  124. #define InitIFF InitIFF__NOT_SUPPORTED__
  125. void InitIFF( struct __NOT_SUPPORTED__*, struct IFFHandle *iff, long flags, struct Hook *streamHook );
  126.  
  127. #define InitIFFasClip InitIFFasClip__NOT_SUPPORTED__
  128. void InitIFFasClip( struct __NOT_SUPPORTED__*, struct IFFHandle *iff );
  129.  
  130. #define OpenClipboard OpenClipboard__NOT_SUPPORTED__
  131. struct ClipboardHandle *OpenClipboard( struct __NOT_SUPPORTED__*,long unitNumber );
  132.  
  133. #define CloseClipboard CloseClipboard__NOT_SUPPORTED__
  134. void CloseClipboard( struct __NOT_SUPPORTED__*, struct ClipboardHandle *clipHandle );
  135.  
  136. #define GoodID GoodID__NOT_SUPPORTED__
  137. LONG GoodID( struct __NOT_SUPPORTED__*, long id );
  138.  
  139. #define GoodType GoodType__NOT_SUPPORTED__
  140. LONG GoodType( struct __NOT_SUPPORTED__*, long type );
  141.  
  142.  
  143. #endif /* __IGNORE_NOT_SUPPORTED__ */
  144.  
  145. #ifdef __cplusplus
  146. }
  147. #endif
  148.  
  149. #endif     /* CLIB_IFFPARSE_PROTOS_H */
  150.