-- Copyright (C) 1987 by Xerox Corporation. All rights reserved. -- Stub file was translated on February 13, 1987 6:01:49 pm PST by Lupine of February 22, 1986 5:15:54 pm PST -- Source interface GPIB came from file GPIB.bcd, which was created on February 13, 1987 5:49:49 pm PST with version stamp 234#307#35204215357 from source of February 13, 1987 5:49:47 pm PST. -- The RPC stub modules for GPIB are: -- GPIBRpcControl.mesa; -- GPIBRpcClientImpl.mesa; -- GPIBRpcBinderImpl.mesa; -- GPIBRpcServerImpl.mesa. -- The parameters for this translation are: -- Target language = Cedar -- Default parameter passing = VALUE -- Deallocate server heap arguments = TRUE -- Inline RpcServerImpl dispatcher stubs = TRUE -- Declare signals = TRUE -- Warn about short POINTER ("MDS") allocations = TRUE -- Maximum number of dynamic heap NEWs = 50, MDS NEWs = 50 -- Acceptable parameter protocols = VersionRange[1..1]. DIRECTORY Rope, GPIB, RPC USING [defaultInterfaceName, EncryptionKey, InterfaceName, Principal, standardZones, VersionRange, Zones], RPCLupineExtras USING [RPCHost, noHost]; GPIBRpcControl: DEFINITIONS SHARES GPIB = BEGIN OPEN GPIB, RpcPublic: RPC, RpcPrivateExtras: RPCLupineExtras; -- Public RPC types and constants. InterfaceName: TYPE = RpcPublic.InterfaceName; VersionRange: TYPE = RpcPublic.VersionRange; Principal: TYPE = RpcPublic.Principal; EncryptionKey: TYPE = RpcPublic.EncryptionKey; Zones: TYPE = RpcPublic.Zones; defaultInterfaceName: InterfaceName = RpcPublic.defaultInterfaceName; standardZones: Zones = RpcPublic.standardZones; -- Standard remote binding routines. ImportInterface: SAFE PROCEDURE [ interfaceName: InterfaceName ← defaultInterfaceName, parameterStorage: Zones ← standardZones, hostHint: RpcPrivateExtras.RPCHost←RpcPrivateExtras.noHost]; UnimportInterface: PROCEDURE; ExportInterface: SAFE PROCEDURE [ interfaceName: InterfaceName ← defaultInterfaceName, user: Principal, password: EncryptionKey, parameterStorage: Zones ← standardZones ]; UnexportInterface: SAFE PROCEDURE; -- Dynamic instantiation and binding. ImportNewInterface: SAFE PROCEDURE [ interfaceName: InterfaceName ← defaultInterfaceName, parameterStorage: Zones ← standardZones, hostHint: RpcPrivateExtras.RPCHost←RpcPrivateExtras.noHost] RETURNS [interfaceRecord: InterfaceRecord]; -- NewInterfaceRecord is necessary for Cedar clients who want to -- manufacture a private interface instance, because -- RpcBindingImpl has finalization on type InterfaceRecord. NewInterfaceRecord: SAFE PROCEDURE RETURNS [interfaceRecord: InterfaceRecord]; InterfaceRecord: TYPE = REF InterfaceRecordObject; InterfaceRecordObject: TYPE = RECORD [ Command: PROCEDURE [sendMsg: Rope.ROPE], DevicesClear: PROCEDURE, GoToLocal: PROCEDURE, GroupExecuteTrigger: PROCEDURE, InterfaceClear: PROCEDURE, LocalLockout: PROCEDURE, RemoteEnable: PROCEDURE, SelectedDeviceClear: PROCEDURE [device: DeviceAddr], SelectedGoToLocal: PROCEDURE [device: DeviceAddr], SelectedGroupEnableTrigger: PROCEDURE [device: DeviceAddr], SelectedRemoteEnable: PROCEDURE [device: DeviceAddr], ParallelPollConfigure: PROCEDURE [device: DeviceAddr], ParallelPollUnconfigure: PROCEDURE, SelectedParallelPollConfigure: PROCEDURE [device: DeviceAddr], SelectedParallelPollUnconfigure: PROCEDURE [device: DeviceAddr], PollDevice: PROCEDURE [device: DeviceAddr, labels: SRQLabels], ReadDevice: PROCEDURE [device: DeviceAddr, terminator: Terminator] RETURNS [recvMsg: Rope.ROPE, end: BOOL], ReadOnInterrupt: PROCEDURE [device: DeviceAddr, recvMsg: Rope.ROPE, labels: SRQLabels], SelectedReadSerialPoll: PROCEDURE [device: DeviceAddr] RETURNS [statusByte: CHAR], ReadStatusByte: PROCEDURE [device: DeviceAddr] RETURNS [char: CHAR], WriteDevice: PROCEDURE [device: DeviceAddr, sendMsg: Rope.ROPE], WriteDeviceBuffered: PROCEDURE [device: DeviceAddr, sendMsg: Rope.ROPE, hold: BOOL], InitializeController: PROCEDURE RETURNS [open: BOOL], FinalizeController: PROCEDURE, SRQAsserted: PROCEDURE RETURNS [asserted: BOOL], WriteDeviceInitial: PROCEDURE [device: DeviceAddr, sendMsg: Rope.ROPE], WriteDeviceContinued: PROCEDURE [device: DeviceAddr, sendMsg: Rope.ROPE, last: BOOL], WriteDeviceBlock: PROCEDURE [device: DeviceAddr, lp: LONG POINTER TO WORD, quadWordCnt: CARDINAL, last: BOOL], WriteDMABlock: PROCEDURE [device: DeviceAddr, multiBusAddress: LONG POINTER TO WORD, byteCnt: CARDINAL, last: BOOL], ReadDeviceInitial: PROCEDURE [device: DeviceAddr], ReadDMABlock: PROCEDURE [device: DeviceAddr, multiBusAddress: LONG POINTER TO WORD, byteCnt: CARDINAL, last: BOOL], ReadDMADone: PROCEDURE [device: DeviceAddr], CheckDMADone: PROCEDURE RETURNS [BOOL], lupineDetails: PRIVATE REF LupineDetailsObject←NIL]; LupineDetailsObject: PRIVATE TYPE; -- Definitions for the stubs. LupineProtocolVersion: PUBLIC VersionRange = [first: 1, last: 1]; InterMdsCallsOnly: PUBLIC BOOLEAN = FALSE; ProcedureIndex: PRIVATE TYPE = MACHINE DEPENDENT { LupineUnusedIndex (0), LupineLastIndex (3), Command (4), DevicesClear (5), GoToLocal (6), GroupExecuteTrigger (7), InterfaceClear (8), LocalLockout (9), RemoteEnable (10), SelectedDeviceClear (11), SelectedGoToLocal (12), SelectedGroupEnableTrigger (13), SelectedRemoteEnable (14), ParallelPollConfigure (15), ParallelPollUnconfigure (16), SelectedParallelPollConfigure (17), SelectedParallelPollUnconfigure (18), PollDevice (19), ReadDevice (20), ReadOnInterrupt (21), SelectedReadSerialPoll (22), ReadStatusByte (23), WriteDevice (24), WriteDeviceBuffered (25), InitializeController (26), FinalizeController (27), SRQAsserted (28), WriteDeviceInitial (29), WriteDeviceContinued (30), WriteDeviceBlock (31), WriteDMABlock (32), ReadDeviceInitial (33), ReadDMABlock (34), ReadDMADone (35), CheckDMADone (36)}; SignalIndex: PRIVATE TYPE = MACHINE DEPENDENT { LupineUnusedIndex (0), LupineLastIndex (3)}; END. -- GPIBRpcControl.