home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / clib / lowlevel_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-29  |  1.8 KB  |  82 lines

  1. #ifndef  CLIB_LOWLEVEL_PROTOS_H
  2. #define  CLIB_LOWLEVEL_PROTOS_H
  3.  
  4. /*
  5. **    $VER: lowlevel_protos.h 40.6 (30.7.93)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  EXEC_INTERRUPTS_H
  18. #include <exec/interrupts.h>
  19. #endif
  20. #ifndef  UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23. #ifndef  DEVICES_TIMER_H
  24. #include <devices/timer.h>
  25. #endif
  26. #ifndef  LIBRARIES_LOWLEVEL_H
  27. #include <libraries/lowlevel.h>
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. #define CLIBCPLUSON
  32. #pragma -
  33. #endif
  34.  
  35. /*--- functions in V40 or higher (Release 3.1) ---*/
  36.  
  37. /* CONTROLLER HANDLING */
  38.  
  39. ULONG ReadJoyPort( unsigned long port );
  40.  
  41. /* LANGUAGE HANDLING */
  42.  
  43. UBYTE GetLanguageSelection( void );
  44.  
  45. /* KEYBOARD HANDLING */
  46.  
  47. ULONG GetKey( void );
  48. void QueryKeys( struct KeyQuery *queryArray, unsigned long arraySize );
  49. APTR AddKBInt( APTR intRoutine, APTR intData );
  50. void RemKBInt( APTR intHandle );
  51.  
  52. /* SYSTEM HANDLING */
  53.  
  54. ULONG SystemControlA( struct TagItem *tagList );
  55. ULONG SystemControl( Tag firstTag, ... );
  56.  
  57. /* TIMER HANDLING */
  58.  
  59. APTR AddTimerInt( APTR intRoutine, APTR intData );
  60. void RemTimerInt( APTR intHandle );
  61. void StopTimerInt( APTR intHandle );
  62. void StartTimerInt( APTR intHandle, unsigned long timeInterval,
  63.     long continuous );
  64. ULONG ElapsedTime( struct EClockVal *context );
  65.  
  66. /* VBLANK HANDLING */
  67.  
  68. APTR AddVBlankInt( APTR intRoutine, APTR intData );
  69. void RemVBlankInt( APTR intHandle );
  70.  
  71. /* MORE CONTROLLER HANDLING */
  72.  
  73. BOOL SetJoyPortAttrsA( unsigned long portNumber, struct TagItem *tagList );
  74. BOOL SetJoyPortAttrs( unsigned long portNumber, Tag firstTag, ... );
  75.  
  76. #ifdef CLIBCPLUSON
  77. #undef CLIBCPLUSON
  78. #pragma +
  79. #endif
  80.  
  81. #endif     /* CLIB_LOWLEVEL_PROTOS_H */
  82.