|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 10240 (0x2800)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Xlbp_Screen_Saver, seg_004f87
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Xlbt_Arithmetic;
use Xlbt_Arithmetic;
with Xlbt_Basic;
use Xlbt_Basic;
with Xlbt_Reply;
use Xlbt_Reply;
with Xlbt_Request;
use Xlbt_Request;
with Xlbt_Screen_Saver;
use Xlbt_Screen_Saver;
with Xlbip_Get_Reply;
use Xlbip_Get_Reply;
with Xlbip_Internal;
use Xlbip_Internal;
with Xlbip_Put_Request;
use Xlbip_Put_Request;
package body Xlbp_Screen_Saver is
------------------------------------------------------------------------------
-- X Library Screen Saver
--
-- Xlbp_Screen_Saver - Control of the server Screen-Saver facility
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
-- Copyright 1985 - 1989 by the Massachusetts Institute of Technology
--
-- All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the names of MIT or Rational not be
-- used in advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- MIT and Rational disclaim all warranties with regard to this software,
-- including all implied warranties of merchantability and fitness, in no
-- event shall MIT or Rational be liable for any special, indirect or
-- consequential damages or any damages whatsoever resulting from loss of use,
-- data or profits, whether in an action of contract, negligence or other
-- tortious action, arising out of or in connection with the use or performance
-- of this software.
------------------------------------------------------------------------------
--\x0c
procedure X_Activate_Screen_Saver (Display : X_Display) is begin
X_Force_Screen_Saver (Display, Screen_Saver_Active);
end X_Activate_Screen_Saver;
--\x0c
procedure X_Reset_Screen_Saver (Display : X_Display) is
begin
X_Force_Screen_Saver (Display, Screen_Saver_Reset);
end X_Reset_Screen_Saver;
--\x0c
procedure X_Force_Screen_Saver (Display : X_Display;
Mode : X_Screen_Saver_Mode) is
begin
Lock_Display (Display);
begin
Put_X_Force_Screen_Saver_Request
(Display, (Kind => Force_Screen_Saver,
Length => X_Force_Screen_Saver_Request'Size / 32,
Mode => Mode));
exception
when others =>
Unlock_Display (Display);
raise;
end;
Unlock_Display (Display);
Sync_Handle (Display);
end X_Force_Screen_Saver;
--\x0c
procedure X_Get_Screen_Saver
(Display : X_Display;
Timeout : out U_Short;
Interval : out U_Short;
Prefer_Blanking : out X_Screen_Saver_Blanking;
Allow_Exposures : out X_Screen_Saver_Exposures) is
Rep : X_Reply_Contents;
Succ : X_Status;
begin
----Lock the display.
Lock_Display (Display);
begin
----Send the request.
Put_X_Get_Screen_Saver_Request
(Display, (Kind => Get_Screen_Saver,
Length => X_Get_Screen_Saver_Request'Size / 32,
Pad => 0));
----Read the reply.
Get_Reply (Display => Display,
Code => Get_Screen_Saver,
Reply => Rep,
Extra => 0,
Discard => True,
Status => Succ);
if Succ /= Failed then
Timeout := Rep.Get_Screen_Saver.Timeout;
Interval := Rep.Get_Screen_Saver.Interval;
Prefer_Blanking := Rep.Get_Screen_Saver.Prefer_Blanking;
Allow_Exposures := Rep.Get_Screen_Saver.Allow_Exposures;
else
Timeout := 0;
Interval := 0;
Prefer_Blanking := None_X_Screen_Saver_Blanking;
Allow_Exposures := None_X_Screen_Saver_Exposures;
end if;
----Catch exceptions.
exception
when others =>
Unlock_Display (Display);
raise;
end;
----Unlock; sync; return.
Unlock_Display (Display);
Sync_Handle (Display);
end X_Get_Screen_Saver;
--\x0c
procedure X_Set_Screen_Saver (Display : X_Display;
Timeout : U_Short;
Interval : U_Short;
Prefer_Blanking : X_Screen_Saver_Blanking;
Allow_Exposures : X_Screen_Saver_Exposures) is
begin
Lock_Display (Display);
begin
Put_X_Set_Screen_Saver_Request
(Display, (Kind => Set_Screen_Saver,
Length => X_Set_Screen_Saver_Request'Size / 32,
Pad => 0,
Pad2 => 0,
Timeout => Timeout,
Interval => Interval,
Prefer_Blank => Prefer_Blanking,
Allow_Expose => Allow_Exposures));
exception
when others =>
Unlock_Display (Display);
raise;
end;
Unlock_Display (Display);
Sync_Handle (Display);
end X_Set_Screen_Saver;
--\x0c
end Xlbp_Screen_Saver;
nblk1=9
nid=0
hdr6=12
[0x00] rec0=20 rec1=00 rec2=01 rec3=076
[0x01] rec0=12 rec1=00 rec2=02 rec3=002
[0x02] rec0=20 rec1=00 rec2=03 rec3=01a
[0x03] rec0=1d rec1=00 rec2=04 rec3=01e
[0x04] rec0=00 rec1=00 rec2=09 rec3=002
[0x05] rec0=1e rec1=00 rec2=05 rec3=00a
[0x06] rec0=00 rec1=00 rec2=08 rec3=03c
[0x07] rec0=16 rec1=00 rec2=06 rec3=018
[0x08] rec0=07 rec1=00 rec2=07 rec3=000
tail 0x217006f3c8197835d9537 0x42a00088462063203