-- Copyright (C) 1986 by Xerox Corporation. All rights reserved.
-- Stub file was translated on April 16, 1986 4:20:54 pm PST by Lupine of May 23, 1985 8:38:08 am PDT
-- Source interface AmHerDict came from file AmHerDict.bcd, which was created on April 16, 1986 4:20:51 pm PST with version stamp 234#312#33544335767 from source of April 16, 1986 4:18:36 pm PST.
-- The RPC stub modules for AmHerDict are:
-- AmHerDictRpcControl.mesa;
-- AmHerDictRpcClientImpl.mesa;
-- AmHerDictRpcBinderImpl.mesa;
-- AmHerDictRpcServerImpl.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,
AmHerDict,
RPC USING [defaultInterfaceName, EncryptionKey, InterfaceName, Principal,
standardZones, VersionRange, Zones],
RPCLupine USING [ImportHandle];
AmHerDictRpcControl: DEFINITIONS
SHARES AmHerDict
= BEGIN OPEN AmHerDict, 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 ];
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 ]
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,
clientStubProofread: SAFE PROCEDURE [interface: InterfaceRecord,
string: Rope.ROPE, analyzerName: ATOM] RETURNS [WordPosition],
clientStubCorrections: SAFE PROCEDURE [interface: InterfaceRecord,
string: Rope.ROPE, analyzerName: ATOM] RETURNS [LIST OF Rope.ROPE],
clientStubGetDefinition: SAFE PROCEDURE [interface: InterfaceRecord,
word: Rope.ROPE, dictName: ATOM] RETURNS [Definition],
clientStubLooks: SAFE PROCEDURE [interface: InterfaceRecord,
dictName: ATOM] RETURNS [LIST OF LIST OF ATOM],
clientStubPronunciation: SAFE PROCEDURE [interface: InterfaceRecord,
word: Rope.ROPE, dictName: ATOM] RETURNS [Rope.ROPE],
clientStubAnalyzers: SAFE PROCEDURE [interface: InterfaceRecord,
user: Rope.ROPE] RETURNS [LIST OF ATOM],
clientStubDictionaries: SAFE PROCEDURE [interface: InterfaceRecord,
user: Rope.ROPE] RETURNS [LIST OF ATOM],
LispError: SAFE SIGNAL [error: Rope.ROPE] RETURNS [Rope.ROPE],
bound: BOOL ← FALSE];
Proofread: SAFE PROCEDURE [interface: InterfaceRecord, string: Rope.ROPE,
analyzerName: ATOM] RETURNS [WordPosition] = CHECKED INLINE { RETURN
interface.clientStubProofread[interface, string, analyzerName]};
Corrections: SAFE PROCEDURE [interface: InterfaceRecord, string:
Rope.ROPE, analyzerName: ATOM] RETURNS [LIST OF Rope.ROPE] = CHECKED
INLINE { RETURN interface.clientStubCorrections[interface, string,
analyzerName]};
GetDefinition: SAFE PROCEDURE [interface: InterfaceRecord, word:
Rope.ROPE, dictName: ATOM] RETURNS [Definition] = CHECKED INLINE
{ RETURN interface.clientStubGetDefinition[interface, word, dictName]};
Looks: SAFE PROCEDURE [interface: InterfaceRecord, dictName: ATOM]
RETURNS [LIST OF LIST OF ATOM] = CHECKED INLINE { RETURN interface.clientStubLooks[interface,
dictName]};
Pronunciation: SAFE PROCEDURE [interface: InterfaceRecord, word:
Rope.ROPE, dictName: ATOM] RETURNS [Rope.ROPE] = CHECKED INLINE
{ RETURN interface.clientStubPronunciation[interface, word, dictName]};
Analyzers: SAFE PROCEDURE [interface: InterfaceRecord, user: Rope.ROPE]
RETURNS [LIST OF ATOM] = CHECKED INLINE { RETURN interface.clientStubAnalyzers[interface,
user]};
Dictionaries: SAFE PROCEDURE [interface: InterfaceRecord, user:
Rope.ROPE] RETURNS [LIST OF ATOM] = CHECKED INLINE { RETURN interface.clientStubDictionaries[interface,
user]};
-- Definitions for the stubs.
LupineProtocolVersion: PUBLIC VersionRange = [first: 1, last: 1];
InterMdsCallsOnly: PUBLIC BOOLEAN = FALSE;
ProcedureIndex: PRIVATE TYPE = MACHINE DEPENDENT {
LupineUnusedIndex (0), LupineLastIndex (3),
Proofread (4), Corrections (5), GetDefinition (6), Looks (7), Pronunciation
(8), Analyzers (9), Dictionaries (10)};
SignalIndex: PRIVATE TYPE = MACHINE DEPENDENT {
LupineUnusedIndex (0), LupineLastIndex (3),
LispError (4)};
END. -- AmHerDictRpcControl.