home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / clib / iffparse_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  3.0 KB  |  78 lines

  1. #ifndef CLIB_IFFPARSE_PROTOS_H
  2. #define CLIB_IFFPARSE_PROTOS_H
  3. /*
  4. ** $VER: iffparse_protos.h 33.2 (13.12.90)
  5. ** Includes Release 38.56
  6. **
  7. ** C prototypes. For use with 32 bit integers only.
  8. **
  9. ** (C) Copyright 1990-1992 Commodore-Amiga, Inc.
  10. ** All Rights Reserved
  11. */
  12. #ifndef EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15.  
  16.  
  17. struct IFFHandle *AllocIFF( void );
  18. LONG OpenIFF( struct IFFHandle *iff, long rwMode );
  19. LONG ParseIFF( struct IFFHandle *iff, long control );
  20. void CloseIFF( struct IFFHandle *iff );
  21. void FreeIFF( struct IFFHandle *iff );
  22.  
  23. LONG ReadChunkBytes( struct IFFHandle *iff, APTR buf, long size );
  24. LONG WriteChunkBytes( struct IFFHandle *iff, APTR buf, long size );
  25. LONG ReadChunkRecords( struct IFFHandle *iff, APTR buf, long bytesPerRecord,
  26.  long nRecords );
  27. LONG WriteChunkRecords( struct IFFHandle *iff, APTR buf, long bytesPerRecord,
  28.  long nRecords );
  29.  
  30. LONG PushChunk( struct IFFHandle *iff, long type, long id, long size );
  31. LONG PopChunk( struct IFFHandle *iff );
  32.  
  33. LONG EntryHandler( struct IFFHandle *iff, long type, long id, long position,
  34.  struct Hook *handler, APTR object );
  35. LONG ExitHandler( struct IFFHandle *iff, long type, long id, long position,
  36.  struct Hook *handler, APTR object );
  37.  
  38. LONG PropChunk( struct IFFHandle *iff, long type, long id );
  39. LONG PropChunks( struct IFFHandle *iff, LONG *propArray, long nProps );
  40. LONG StopChunk( struct IFFHandle *iff, long type, long id );
  41. LONG StopChunks( struct IFFHandle *iff, LONG *propArray, long nProps );
  42. LONG CollectionChunk( struct IFFHandle *iff, long type, long id );
  43. LONG CollectionChunks( struct IFFHandle *iff, LONG *propArray, long nProps );
  44. LONG StopOnExit( struct IFFHandle *iff, long type, long id );
  45.  
  46. struct StoredProperty *FindProp( struct IFFHandle *iff, long type, long id );
  47. struct CollectionItem *FindCollection( struct IFFHandle *iff, long type,
  48.  long id );
  49. struct ContextNode *FindPropContext( struct IFFHandle *iff );
  50. struct ContextNode *CurrentChunk( struct IFFHandle *iff );
  51. struct ContextNode *ParentChunk( struct ContextNode *contextNode );
  52.  
  53. struct LocalContextItem *AllocLocalItem( long type, long id, long ident,
  54.  long dataSize );
  55. APTR LocalItemData( struct LocalContextItem *localItem );
  56. void SetLocalItemPurge( struct LocalContextItem *localItem,
  57.  struct Hook *purgeHook );
  58. void FreeLocalItem( struct LocalContextItem *localItem );
  59. struct LocalContextItem *FindLocalItem( struct IFFHandle *iff, long type,
  60.  long id, long ident );
  61. LONG StoreLocalItem( struct IFFHandle *iff, struct LocalContextItem *localItem,
  62.  long position );
  63. void StoreItemInContext( struct IFFHandle *iff,
  64.  struct LocalContextItem *localItem,
  65.  struct ContextNode *contextNode );
  66.  
  67. void InitIFF( struct IFFHandle *iff, long flags, struct Hook *streamHook );
  68. void InitIFFasDOS( struct IFFHandle *iff );
  69. void InitIFFasClip( struct IFFHandle *iff );
  70.  
  71. struct ClipboardHandle *OpenClipboard( long unitNum );
  72. void CloseClipboard( struct ClipboardHandle *clipboard );
  73.  
  74. LONG GoodID( long id );
  75. LONG GoodType( long type );
  76. STRPTR IDtoStr( long id, STRPTR buf );
  77. #endif 
  78.