home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / h / screenblan < prev    next >
Encoding:
Text File  |  1994-09-07  |  2.3 KB  |  79 lines

  1. #ifndef screenblanker_H
  2. #define screenblanker_H
  3.  
  4. /* C header file for ScreenBlanker
  5.  * written by DefMod (Sep  7 1994) on Wed Sep  7 21:19:30 1994
  6.  * Copyright © Acorn Computers Ltd, 1994
  7.  */
  8.  
  9. /*************************************************************************
  10.  * This source file was written by Acorn Computers Limited. It is part   *
  11.  * of the OSLib library for writing applications for RISC OS. It may be  *
  12.  * used freely in the creation of programs for RISC OS.                  *
  13.  *************************************************************************/
  14.  
  15. #ifndef types_H
  16.    #include "types.h"
  17. #endif
  18.  
  19. #ifndef os_H
  20.    #include "os.h"
  21. #endif
  22.  
  23. /**********************************
  24.  * SWI names and SWI reason codes *
  25.  **********************************/
  26. #undef  ScreenBlanker_Control
  27. #define ScreenBlanker_Control                   0x43100
  28. #undef  XScreenBlanker_Control
  29. #define XScreenBlanker_Control                  0x63100
  30. #undef  Service_ScreenBlanked
  31. #define Service_ScreenBlanked                   0x7A
  32. #undef  Service_ScreenRestored
  33. #define Service_ScreenRestored                  0x7B
  34.  
  35. /*************************
  36.  * Function declarations *
  37.  *************************/
  38.  
  39. #ifdef __cplusplus
  40.    extern "C" {
  41. #endif
  42.  
  43. /*************************************************************
  44.  * NOTE: The following functions provide direct access to    *
  45.  *       the SWI's noted in the function description.        *
  46.  *       Please read the relevant PRM section for more       *
  47.  *       information on their input/output parameters.       *
  48.  *************************************************************/
  49.  
  50. /* ------------------------------------------------------------------------
  51.  * Function:      service_screen_blanked()
  52.  *
  53.  * Description:   Screen blanked by screen blanker
  54.  *
  55.  * Other notes:   Calls SWI 0x30 with R1 = 0x7A.
  56.  */
  57.  
  58. extern os_error *xservice_screen_blanked (void);
  59. extern void service_screen_blanked (void);
  60.  
  61. /* ------------------------------------------------------------------------
  62.  * Function:      service_screen_restored()
  63.  *
  64.  * Description:   Screen restored by screen blanker
  65.  *
  66.  * Input:         x - value of R0 on entry
  67.  *
  68.  * Other notes:   Calls SWI 0x30 with R1 = 0x7B.
  69.  */
  70.  
  71. extern os_error *xservice_screen_restored (int x);
  72. extern void service_screen_restored (int x);
  73.  
  74. #ifdef __cplusplus
  75.    }
  76. #endif
  77.  
  78. #endif
  79.