home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Recent / mus / play / mhimdev.lha / mhimdev.library / src / mhimdev.h < prev    next >
C/C++ Source or Header  |  2001-06-03  |  2KB  |  69 lines

  1. /*****************************************************************************
  2.  
  3.     mhimdev.library - MHI driver for mpeg.device
  4.     Copyright (C) 2001  Michael Henke
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20. *****************************************************************************/
  21.  
  22.  
  23. #include <exec/libraries.h>
  24. #include <dos/dos.h>
  25.  
  26.  
  27. /* #define DEBUG - enable auto-expunge and debug output to serial port */
  28. /*#define DEBUG*/
  29.  
  30.  
  31. #define VERSION     1
  32. #define REVISION    1
  33. #define DATETXT     "03.06.2001"
  34. #define VERSTXT     "1.1"
  35.  
  36. #define LIBNAME     "mhimdev.library"
  37. #define IDSTRING    LIBNAME " " VERSTXT " (" DATETXT ")"
  38.  
  39.  
  40. struct mhimdevBaseP
  41. {
  42.     struct Library      libNode;
  43.     BPTR                segList;
  44. };
  45.  
  46.  
  47. extern const UBYTE idstring[];
  48.  
  49.  
  50. #ifdef DEBUG
  51. extern void KPutStr(STRPTR);
  52. extern LONG KPutChar(LONG);
  53. #pragma **note: DEBUG mode is enabled
  54. /* force SAS/C to print a warning */
  55. #endif
  56.  
  57.  
  58. extern APTR __asm   i_MHIAllocDecoder(register __a0 struct Task *task, register __d0 ULONG mhisignal);
  59. extern void __asm   i_MHIFreeDecoder(register __a3 APTR handle);
  60. extern BOOL __asm   i_MHIQueueBuffer(register __a3 APTR handle, register __a0 APTR buffer, register __d0 ULONG size);
  61. extern APTR __asm   i_MHIGetEmpty(register __a3 APTR handle);
  62. extern UBYTE __asm  i_MHIGetStatus(register __a3 APTR handle);
  63. extern void __asm   i_MHIPlay(register __a3 APTR handle);
  64. extern void __asm   i_MHIStop(register __a3 APTR handle);
  65. extern void __asm   i_MHIPause(register __a3 APTR handle);
  66. extern ULONG __asm  i_MHIQuery(register __d1 ULONG query);
  67. extern void __asm   i_MHISetParam(register __a3 APTR handle, register __d0 UWORD param, register __d1 ULONG value);
  68.  
  69.