home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma58.dms / ma58.adf / superplay-lib_USR / superplay_internal.h < prev    next >
C/C++ Source or Header  |  1996-05-27  |  6KB  |  159 lines

  1.  
  2.  /* superplay_internal.h
  3.     - Include File for SPObject-Support Routines -
  4.     (c) 1990-94 by Andreas R. Kleinert
  5.     Last changes : 27.11.1994
  6.  */
  7.  
  8. #ifndef SUPERPLAY_INTERNAL_H
  9. #define SUPERPLAY_INTERNAL_H
  10.  
  11. #ifndef SUPERPLAY_SUPERPLAYBASE_H
  12. #include <superplay/superplaybase.h>
  13. #endif  /* SUPERPLAY_SUPERPLAYBASE_H */
  14.  
  15. #ifndef SPOBJECTS_SPOBJECTBASE_H
  16. #include <spobjects/spobjectbase.h>
  17. #endif  /* SPOBJECTS_SPOBJECTBASE_H */
  18.  
  19. #ifndef INTUITION_INTUITIONBASE_H
  20. #include <intuition/intuitionbase.h>
  21. #endif /* INTUITION_INTUITIONBASE_H */
  22.  
  23. #ifndef EXEC_MEMORY_H
  24. #include <exec/memory.h>
  25. #endif /* EXEC_MEMORY_H */
  26.  
  27. #ifndef EXEC_LISTS_H
  28. #include <exec/lists.h>
  29. #endif /* EXEC_LISTS_H */
  30.  
  31. #ifndef EXEC_INTERRUPTS_H
  32. #include <exec/interrupts.h>
  33. #endif /* EXEC_INTERRUPTS_H */
  34.  
  35. #include <proto/exec.h>
  36. #include <proto/dos.h>
  37. #include <proto/intuition.h>
  38. #include <proto/utility.h>
  39. #include <proto/spobjects.h>
  40.  
  41.  
  42. #include "SP_MemSubs.h"
  43.  
  44.  
  45. /* *************************************************** */
  46. /* *                             * */
  47. /* * SP_SuperVisor.c : Functions                 * */
  48. /* *                             * */
  49. /* *************************************************** */
  50.  
  51. extern struct AI_IFFHandle * __saveds __asm SPL_AllocHandle( register __a1 APTR future_a1);
  52. extern void __saveds __asm SPL_FreeHandle( register __a1 struct AI_IFFHandle *ai_iffhandle_a1);
  53. extern void __saveds __asm SPL_StopReplay( register __a1 struct AI_IFFHandle *ai_iffhandle_a1);
  54. extern void __saveds __asm SPL_FreeResources( register __a1 struct AI_IFFHandle *ai_iffhandle_a1);
  55.  
  56.  
  57. /* *************************************************** */
  58. /* *                             * */
  59. /* * SP_WriteSubs.c : ...                            * */
  60. /* *                             * */
  61. /* *************************************************** */
  62.  
  63. extern ULONG __saveds __asm SPL_SuperWrite( register __a1 struct AI_IFFHandle *ai_iffhandle_a1,
  64.                                             register __a2 struct AI_IFFHandle *source_handle);
  65.  
  66.  
  67. /* *************************************************** */
  68. /* *                             * */
  69. /* * SP_InfoSubs.c : ...                             * */
  70. /* *                             * */
  71. /* *************************************************** */
  72.  
  73. extern ULONG __saveds __asm SPL_FileInfoRequest( register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 struct Window *window, register __a3 ULONG future);
  74. extern ULONG __saveds __asm SPL_GetFileType(     register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 char *filename, register __a3 ULONG *filetype);
  75.  
  76. extern long __saveds __stdargs SPLI_CheckSPObject(BPTR handle, struct AI_IFFHandle *ai_iffhandle, char *filename, struct SPOCheckFile *spo_check);
  77.  
  78.  
  79. /* *************************************************** */
  80. /* *                             * */
  81. /* * SP_ChangeSubs.c : ...                           * */
  82. /* *                             * */
  83. /* *************************************************** */
  84.  
  85. extern ULONG __saveds __asm SPL_InitHandleAsDOS(  register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 APTR future);
  86. extern ULONG __saveds __asm SPL_InitHandleAsClip( register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 APTR future);
  87. extern ULONG __saveds __asm SPL_SetWriteType( register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 ULONG akt_type, register __a3 APTR future);
  88. extern ULONG __saveds __asm SPL_SetWriteName( register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 char *writename, register __a3 APTR future);
  89. extern ULONG __saveds __asm SPL_SetReqIOWindow( register __a1 struct AI_IFFHandle *ai_iffhandle_a1, register __a2 struct Window *ReqIOWindow);
  90.  
  91.  
  92. /* *************************************************** */
  93. /* *                             * */
  94. /* * SP_Error.c : ...                                * */
  95. /* *                             * */
  96. /* *************************************************** */
  97.  
  98. extern char * __saveds __asm SPL_GetErrorString( register __a1 ULONG error_code_a1);
  99.  
  100.  
  101. /* *************************************************** */
  102. /* *                             * */
  103. /* * SP_PlaySubs.c : ...                             * */
  104. /* *                             * */
  105. /* *************************************************** */
  106.  
  107. extern ULONG __saveds __asm SPL_ReadPlayData( register __a1 struct AI_IFFHandle *ai_iffhandle_a1,
  108.                                               register __a2 char *filename);
  109. extern ULONG __saveds __asm SPL_SuperPlay( register __a1 struct AI_IFFHandle *ai_iffhandle_a1,
  110.                                            register __a2 char *filename);
  111. extern ULONG __saveds __asm SPL_ContinueReplay( register __a1 struct AI_IFFHandle *ai_iffhandle_a1);
  112.  
  113.  
  114. /* *************************************************** */
  115. /* *                             * */
  116. /* * SP_RecogSubs.c : ...                            * */
  117. /* *                             * */
  118. /* *************************************************** */
  119.  
  120. extern struct SPO_ObjectNode * __saveds __stdargs SPLI_GetSPObject(ULONG subtype);
  121.  
  122.  
  123. /* *************************************************** */
  124. /* *                             * */
  125. /* * Additional Base Declarations             * */
  126. /* *                             * */
  127. /* *************************************************** */
  128.  
  129. extern struct SuperPlayBase *SuperPlayBase;
  130. extern struct ExecBase        *SysBase;
  131. extern struct DosLibrary    *DOSBase;
  132. extern struct IntuitionBase *IntuitionBase;
  133. extern struct Library       *UtilityBase;
  134.  
  135.  
  136.  /* structures for SPObject-Handling */
  137.  
  138. struct AI_IFFHandle                   /* STRICTLY PRIVATE */
  139. {
  140.  BPTR                ah_filehandle_source;
  141.  BPTR                ah_filehandle_dest;
  142.  
  143.  ULONG               ah_FileType;           /* SP_FILETYPE_ ... */
  144.  ULONG               ah_Type;               /* SP_SUBTYPE_  ... */
  145.  ULONG               ah_WriteMode;          /* SP_SUBTYPE_  ... */
  146.  UBYTE              *ah_WriteName;
  147.  ULONG               ah_Medium;             /* SPO_MEDIUM_  ... */
  148.  
  149.  struct AIM_MemList *ah_ramhandle;
  150.  
  151.  struct SPObjectBase   *ah_ObjectBase;  /* Library-Base of spobject.    */
  152.  struct SPO_ObjectNode *ah_SPObject;
  153.  APTR                   ah_SPHandle;
  154.  
  155.  struct Window         *ah_ReqIOWindow;
  156. };
  157.  
  158. #endif /* SUPERPLAY_INTERNAL_H */
  159.