home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / opus / v5 / opussdk / amigaguide / dopus / timer.h < prev   
C/C++ Source or Header  |  1977-12-31  |  1KB  |  51 lines

  1. @DATABASE "dopus/timer.h"
  2. @MASTER   "opussdk:include/dopus/timer.h"
  3. @REMARK   (c) Dr Greg Perry and Jonathan Potter, GPSoftware 1996
  4. @REMARK   This file was initially created by ADtoHT 2.1 on 07-Sep-96 18:20:14
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "dopus/timer.h"
  8. @TOC "DopusSDK/MAIN"
  9.  
  10. @{"dopus/timer.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"TimerHandle" LINK "dopus/timer.h/File" 10}
  16.  
  17.  
  18. @{b}Typedefs@{ub}
  19.  
  20. @{"TimerHandle" LINK "dopus/timer.h/File" 10}
  21.  
  22. @ENDNODE
  23. @NODE File "dopus/timer.h"
  24. #ifndef _DOPUS_TIMER
  25. #define _DOPUS_TIMER
  26.  
  27. /*****************************************************************************
  28.  
  29.  Timer
  30.  
  31.  *****************************************************************************/
  32.  
  33. typedef struct TimerHandle
  34. {
  35.         struct MsgPort          *port;          // Port to wait on
  36.         struct timerequest      req;            // Timer request
  37.         struct MsgPort          *my_port;       // Supplied port
  38.         short                   active;         // Indicates active request
  39. } TimerHandle;
  40.  
  41. @{"TimerHandle" LINK File 10} *AllocTimer(ULONG,struct MsgPort *);
  42. BOOL CheckTimer(@{"TimerHandle" LINK File 10} *);
  43. void FreeTimer(@{"TimerHandle" LINK File 10} *);
  44. struct Library *GetTimerBase(void);
  45. void StartTimer(@{"TimerHandle" LINK File 10} *,ULONG,ULONG);
  46. void StopTimer(@{"TimerHandle" LINK File 10} *);
  47. BOOL TimerActive(@{"TimerHandle" LINK File 10} *);
  48.  
  49. #endif
  50. @ENDNODE
  51.