-- Copyright (C) 1987 by Xerox Corporation. All rights reserved. -- Stub file was translated on January 7, 1987 10:42:14 am PST by Lupine of December 20, 1986 7:04:08 pm PST -- Source interface OldAlpineTransMgr came from file OldAlpineTransMgr.bcd, which was created on January 7, 1987 10:42:13 am PST with version stamp 321#357#25417753135 from source of January 6, 1987 2:18:06 pm PST. -- The RPC stub modules for OldAlpineTransMgr are: -- OldAlpineTransMgrRpcControl.mesa; -- OldAlpineTransMgrRpcClientImpl.mesa; -- OldAlpineTransMgrRpcBinderImpl.mesa; -- OldAlpineTransMgrRpcServerImpl.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 OldAlpineEnvironment, OldAlpineTransMgr, RPC USING [defaultInterfaceName, EncryptionKey, InterfaceName, Principal, standardZones, VersionRange, Zones], RPCLupine USING [ImportHandle, noHost, RPCHost]; OldAlpineTransMgrRpcControl: DEFINITIONS SHARES OldAlpineTransMgr = BEGIN OPEN OldAlpineTransMgr, RpcPublic: RPC, RpcPrivate: RPCLupine; -- 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 [ interface: InterfaceRecord, interfaceName: InterfaceName _ defaultInterfaceName, parameterStorage: Zones _ standardZones, hostHint: RpcPrivate.RPCHost_RpcPrivate.noHost]; 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: RpcPrivate.RPCHost_RpcPrivate.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 [ myInterface: RpcPrivate.ImportHandle _ NIL, paramZones: RpcPublic.Zones _ RpcPublic.standardZones, clientStubRegisterWorker: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID] RETURNS [RegisterWorkerResult], clientStubWorkerPrepare: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID, newTrans: OldAlpineEnvironment.TransID] RETURNS [WorkerState], clientStubWorkerFinish: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID, requiredOutcome: RequiredOutcome], Refused: ERROR [why: Refusal], bound: BOOL _ FALSE]; RegisterWorker: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID] RETURNS [RegisterWorkerResult] = INLINE { RETURN interface.clientStubRegisterWorker[interface, conversation, trans]}; WorkerPrepare: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID, newTrans: OldAlpineEnvironment.TransID] RETURNS [WorkerState] = INLINE { RETURN interface.clientStubWorkerPrepare[interface, conversation, trans, newTrans]}; WorkerFinish: PROCEDURE [interface: InterfaceRecord, conversation: OldAlpineEnvironment.Conversation, trans: OldAlpineEnvironment.TransID, requiredOutcome: RequiredOutcome] = INLINE { interface.clientStubWorkerFinish[interface, conversation, trans, requiredOutcome]}; -- Definitions for the stubs. LupineProtocolVersion: PUBLIC VersionRange = [first: 1, last: 1]; InterMdsCallsOnly: PUBLIC BOOLEAN = FALSE; ProcedureIndex: PRIVATE TYPE = MACHINE DEPENDENT { LupineUnusedIndex (0), LupineLastIndex (3), RegisterWorker (4), WorkerPrepare (5), WorkerFinish (6)}; SignalIndex: PRIVATE TYPE = MACHINE DEPENDENT { LupineUnusedIndex (0), LupineLastIndex (3), Refused (4)}; END. -- OldAlpineTransMgrRpcControl.